Can I pull data from tables given certain values?
Asked by Bar T:

Summary page A would like to pull from a table on pages B and C.

We only want to pull data given the priority column has a P1. Is this possible?


Answers:
author: Natalie Paramonova [Stiltsoft]
body: Hi Barbara,

I have a couple of solutions for you.

1) If you need to pull tables containing only one row, you can use the Page Properties Report macro wrapped in the [Table Filter](https://docs.stiltsoft.com/display/TableFilter/How+to+use+Table+filter+macro?src=contextnavpagetreemode) macro. You can filter the table to display only the rows containing P1 using Table Filter.

2) If you need to pull multiple tables with multiple rows (both manually created or generated with the help of the macros outputting tables), you can use the [Table Excerpt Include](https://docs.stiltsoft.com/display/TableFilter/How+to+use+Table+Excerpt+and+Table+Excerpt+Include+macros?src=contextnavpagetreemode) macro that provides an ability to pull any tables from child pages, from specific pages, from pages by labels and more.

After that, you can use the [Table Transformer](https://docs.stiltsoft.com/display/TableFilter/How+to+use+Table+Transformer+macro?src=contextnavpagetreemode) macro to merge all the tables in one.

The [Table Filter](https://docs.stiltsoft.com/display/TableFilter/How+to+use+Table+filter+macro?src=contextnavpagetreemode) macro can help you to hide unnecessary columns and filter rows containing P1.

The workflow may be as follows:

1. Insert the Table Excerpt macro, set the Excerpt name parameter, and place the tables (or the macros outputting tables) within the macro body on every page.

![2019-03-28_18h09_44.png](https://community.atlassian.com/t5/image/serverpage/image-id/51014iDFAB01D8506ECCCD/image-dimensions/407x226?v=v2 "2019-03-28_18h09_44.png")

2. Add the Table Excerpt Include macro on the summary page, specify Excerpt name and select an appropriate Excerpt source.

![2019-03-28_18h22_47.png](https://community.atlassian.com/t5/image/serverpage/image-id/51012iD7F400C52C134681/image-dimensions/570x364?v=v2 "2019-03-28_18h22_47.png")

3. Wrap the Table Excerpt include macro in the Table Transformer macro, use the default presets or custom SQL queries to merge all the tables in one.

![2019-03-28_18h11_16.png](https://community.atlassian.com/t5/image/serverpage/image-id/51010i43E3A11F15AF386D/image-dimensions/338x153?v=v2 "2019-03-28_18h11_16.png")

![2019-03-28_18h11_36.png](https://community.atlassian.com/t5/image/serverpage/image-id/51013i2AD1D48F8FB7C60A/image-dimensions/567x323?v=v2 "2019-03-28_18h11_36.png")

4. Add the Table Filter macro to the merged table to hide unnecessary columns and filter rows.

![2019-04-08_12h12_05.png](https://community.atlassian.com/t5/image/serverpage/image-id/51011iB8931A519BFCB670/image-dimensions/539x372?v=v2 "2019-04-08_12h12_05.png")

Let me know if you need more details.


author: EPS Software Engineering AG
body: Hi Barbara,

Our Easy Dropdown Menu allows to be used as a filter (CQL) in a Page Properties Report. So, P1 would be an item of a Dropdown Menu and you can filter on that. You can find the Easy Dropdown Menu an the Marketplace and the last illustration shows the CQL filter.

Regards,  
Stephan (CEO of EPS Software Engineering AG, the vendor of the Easy Dropdown Menu)


author: Shannon S
body: Hi Barbara,

It sounds like you might be able to get this to work using the [Page Properties](https://confluence.atlassian.com/doc/page-properties-macro-184550024.html) and the [Page Properties Report](https://confluence.atlassian.com/doc/page-properties-report-macro-186089616.html) macros.

Could you have a look and let me know if you have any questions?

Regards,

Shannon

comments: author: Shannon S
body: Also, if this does not help, it wasn't very clear where this information is coming from.

Is this a table you built in a Confluence page or are you using something like Jira issues macro to generate the table?

Shannon


author: Bar T
body: Thanks for responding Shannon. Page properties and entire multiexcerpts won't work as we are trying to show only the priority 1 items in the main page.

Confluence Page A shows the high level summary to teams.

Confluence pages B, C, D, etc. all have a table of data that are prioritized.

We only want to show "if table column shows P1, then show this data on the high level page".

Thanks!


author: Shannon S
body: Thank you for clarifying that, Barbara.

You may want to try instead to use a table add-on. I think that you could built the table you require perhaps with one of the following:

* [Confluence Tables Add-ons](https://marketplace.atlassian.com/search?product=confluence&query=tables)

Regards,

Shannon


Tags: atlassian-marketplace

confluence-server

jira

jira-server

report

server