Build a table from other tables
Asked by Maria Martinho:

Is there a way to build a table based on tables on different pages without using the Multiexcerpt macro?

When we update one of those tables, automatically update the consolidated table?

Thank you.


Answers:
author: Natalie Paramonova [Stiltsoft]
body: Hello Maria,

I think I have a solution for your use case if you use Confluence Server or Data Center. The [Table Excerpt Include](https://docs.stiltsoft.com/display/TableFilter/How+to+use+Table+Excerpt+and+Table+Excerpt+Include+macros?src=contextnavpagetreemode) macro supports multi-export from pages by labels starting from the version 5.0.0 of the [Table Filter and Charts](https://marketplace.atlassian.com/apps/27447/table-filter-and-charts-for-confluence?hosting=server&tab=overview) app. The new version also includes a new macro: [Table Transformer](https://docs.stiltsoft.com/display/TableFilter/How+to+use+Table+Transformer+macro) that provides merging tables and any other kinds of table transformation:

1. Insert the Table Excerpt macro instead of the Page Properties macro, set the 'Excerpt name' parameter, and place the tables within the macro body on every page.

![2019-03-28_18h14_32.png](https://community.atlassian.com/t5/image/serverpage/image-id/49864i347972C57F44254A/image-dimensions/242x91?v=v2 "2019-03-28_18h14_32.png")

![2019-03-28_18h09_44.png](https://community.atlassian.com/t5/image/serverpage/image-id/49866iE5FE7D11223C7659/image-dimensions/471x261?v=v2 "2019-03-28_18h09_44.png")

2. Add labels to the pages.

![2019-03-28_18h15_43.png](https://community.atlassian.com/t5/image/serverpage/image-id/49862i3562D5AC64E1FF97/image-dimensions/559x351?v=v2 "2019-03-28_18h15_43.png")

3. Add the Table Excerpt Include macro on the page where you want to have a data table and select the option 'From pages by labels', specify 'Excerpt name' and 'Page labels' parameters.

![2019-03-28_18h22_47.png](https://community.atlassian.com/t5/image/serverpage/image-id/49861iFAFAC9FFA82A5F5B/image-dimensions/559x357?v=v2 "2019-03-28_18h22_47.png")

4. Wrap the Table Excerpt include macro in the Table Transformer macro, use '[Merge tables](https://docs.stiltsoft.com/display/TableFilter/Default+automatic+presets)' preset to merge all the tables in one.

![2019-03-28_18h11_16.png](https://community.atlassian.com/t5/image/serverpage/image-id/49865i8CF28ECFAE8A0C55/image-dimensions/413x187?v=v2 "2019-03-28_18h11_16.png")

![2019-03-28_18h27_21.png](https://community.atlassian.com/t5/image/serverpage/image-id/49860iF25600EEBB196C86/image-dimensions/559x361?v=v2 "2019-03-28_18h27_21.png")

Please let me know if it helps.

comments: author: Maria Martinho
body: Thank you Natalie. I'm going to test it.


author: George Ivanov
body: Hi there,

for the server option of Confluence you can use "SQL-Powered Table Transformer" macro (<https://marketplace.atlassian.com/apps/1219300/sql-powered-table-transformer>) along with the standard Excerpt/Excerpt include macro

Put each of the tables inside the Excerpt macro container.

On the summary page add the SQL-Powered Table Transformer macro container, then inside the container link all the tables from other pages using the Excerpt Include macro.

Adjust the SQL Query in the SQL-Powered Table Transformer macro properties to pull the needed rows from the needed tables. Table names will be TABLE_1, TABLE_2, etc. (according to the order you put them into the SQL-Powered Table Transformer)

Cheers!


author: Vladyslav Darmenko
body: Hi there. Not sure if previous solutions helped you. I've mixed couple advises from other people: ![filters.png](https://community.atlassian.com/t5/image/serverpage/image-id/77692i619F8AD6EEE7A76B/image-size/large?v=v2&px=999 "filters.png")

So each meeting we had a table with Agenda.

The task was to show on one page all meeting agendas for the past one year.

Solution is:

1. Convert individual agenda tables into Table Excerpt.

2. Get all tables on one page through Table Excerpt Include.

3. Assemble ONE table from many by using Table Transformer macros

4. On top of this Table give users the ability to sort and filter Data on that Table.

Maybe there are more elegant ways to deal with that task but I found the solution in 10 min by browsing answers at Atlassian Community.

Good luck!


author: Davin Studer
body: Have you looked into the page properties and page properties report macros?

comments: author: Maria Martinho
body: Hi David

Yes, I already try that, but only shows the first line of the table.

Thank you.