Is there a way to merge content from multiple tables by only including rows with key words in them?
Asked by Hashem Said:

There are multiple pages with different tables on them. Our team is only interested in a few of the columns, across multiple documents. And in those columns, there are only certain rows tagged with new keywords that we're interested in.

Considering the pages are always being updated, new keywords being added, and even new pages with multiple tables being created constantly, is there a way to pull data into one central location to make it easier for us?

Any help would be appreciated. Thanks.


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

If you need to pull multiple tables (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/TFAC/How+to+use+Table+Excerpt+and+Table+Excerpt+Include+macros?utm_source=atl_community) 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/TFAC/How+to+use+Table+Transformer+macro?utm_source=atl_community) macro to merge all the tables in one.

The [Table Filter](https://docs.stiltsoft.com/display/TFAC/How+to+use+Table+Filter+macro?utm_source=atl_community) macro can help you to hide unnecessary columns and filter rows by keywords.

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/50775iA934063A5FAC3A76/image-dimensions/547x303?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/50778i55D52DB7F48A7544/image-dimensions/552x353?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/50776iE1A93E5E53F49270/image-dimensions/448x203?v=v2 "2019-03-28_18h11_16.png")

![2019-03-28_18h27_21.png](https://community.atlassian.com/t5/image/serverpage/image-id/50777iBCCE23D9DA4ADE79/image-dimensions/548x354?v=v2 "2019-03-28_18h27_21.png")

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

![2019-04-08_12h12_05.png](https://community.atlassian.com/t5/image/serverpage/image-id/50784iCFE6B7C283A95C0C/image-dimensions/533x368?v=v2 "2019-04-08_12h12_05.png")

comments: author: Alexander Wirtz
body: Thank you for this explanation! These Macros really enable a lot for us in confluence.


author: ??????? ????????
body: Thanks! Helped alot!


author: Stiltsoft support
body: And for other people who may come across this question: please take a look a these blog posts where we show how to create combined reports step-by-step

* [How to Aggregate and Reuse Data From Multiple Confluence Tables](https://stiltsoft.com/blog/how-to-aggregate-and-reuse-data-from-multiple-confluence-tables/?utm_source=atl_community&utm_medium=answer&utm_campaign=table-filter-traffic-sources&utm_vendorID=1216111)

* [How to Create Reports from Multiple Confluence Tables](https://stiltsoft.com/blog/how-to-create-reports-from-multiple-confluence-tables/?utm_source=atl_community&utm_medium=answer&utm_campaign=table-filter-traffic-sources&utm_vendorID=1216111)

Hope it helps your cases!


author: Zak Laughton
body: Hi Hashem,

There's not a native way in Confluence to monitor specific columns or rows in a table. If you know the keywords you are looking for, the best alternative I could think of would be to use a [Search Results Macro](https://confluence.atlassian.com/doc/search-results-macro-139511.html) on a page to show all pages that contain a certain keywords. Of course, this would search for the keyword anywhere on the page, not just within the specific rows and columns you are targeting. However, this could work, depending on your requirements and how unique the keywords are.

-Zak


author: renaud staessens
body: [@Alexander Wirtz](/t5/user/viewprofilepage/user-id/2388570) We have a datacenter version looks like the option "name" in the table excerpt doesn't exist ! so that ican't retrieve several table from different pages . any workaround?

comments: author: Stiltsoft support
body: Hi [@renaud staessens](/t5/user/viewprofilepage/user-id/5301677) ,

It can't be so - please check if you inserted the Table Excerpt macro and not the standard Excerpt macro (without the "Table" prefix).

There is no any difference between the app's versions for different hostings, it doesn't matter if you are on Cloud, Data Center, or Server.


author: George Ivanov
body: [SQL-Powered Table Transformer](https://marketplace.atlassian.com/apps/1219300/sql-powered-table-transformer) will allow you to achieve the goal


Tags: confluence-server

filter

server

table

table-excerpt

table-filter

table-filter-and-charts

table-filter-charts-spreadsheets