Table Summarization from child pages
Asked by ganesh n:

I have a bunch of child pages each of which have a table in them. I have a parent summary page which gives the number of rows in the tables of each of the child pages. Currently, this is a static table with hardcoded numbers. Is there a way to make this dynamic (like an excel formula link)?

Example:

Child Page 1 (Table Format)

1. Column1 Column2 Column3

2. Column1 Column2 Column3

Child Page 2 (Table Format)

1. Column1 Column2 Column3

2. Column1 Column2 Column3

3. Column1 Column2 Column3

4. Column1 Column2 Column3

Parent Summary Page (Table Format)

Sl. No. C hild Page Row Count

1. Child Page 1 2

2. Child Page 2 4


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

Starting from version 5.0.0, the [Table Filter and Charts](https://marketplace.atlassian.com/apps/27447/table-filter-and-charts-for-confluence?hosting=server&tab=overview) app provides the abilities to multi-excerpt tables from any pages (current page, specific page, child pages, pages by labels) with the help of the [Table Excerpt Include](https://docs.stiltsoft.com/display/TableFilter/How+to+use+Table+Excerpt+and+Table+Excerpt+Include+macros?src=contextnavpagetreemode) macro and to transform and combine excerpted tables in one master table with the help of the [Table Transformer](https://docs.stiltsoft.com/display/TableFilter/How+to+use+Table+Transformer+macro?src=contextnavpagetreemode) macro.

The steps to resolve your use case 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-04-09_18h54_46.png](https://community.atlassian.com/t5/image/serverpage/image-id/51028i7305156210D1500F/image-dimensions/335x273?v=v2 "2019-04-09_18h54_46.png")

2. Add the Table Excerpt Include macro on the summary page, specify Excerpt name and select an appropriate Excerpt source. Do this separately for every page and table for which you want to count rows.

![2019-04-09_19h40_44.png](https://community.atlassian.com/t5/image/serverpage/image-id/51031i241EACD6FFC18543/image-dimensions/561x348?v=v2 "2019-04-09_19h40_44.png")

3. Wrap every Table Excerpt Include macro in the Table Transformer macro. Edit the Table Transformer macro, select the SQL query tab and use the following query to output the table containing the page name and the number of rows in the table for every page:

SELECT "Page A" AS 'Page', COUNT (\*) AS 'Number of rows' FROM T\*

![2019-04-09_19h34_37.png](https://community.atlassian.com/t5/image/serverpage/image-id/51024i83FD4A8CA9986894/image-dimensions/377x240?v=v2 "2019-04-09_19h34_37.png")

![2019-04-09_18h56_43.png](https://community.atlassian.com/t5/image/serverpage/image-id/51026i258B6E31FD9A7B7B/image-dimensions/574x337?v=v2 "2019-04-09_18h56_43.png")

![2019-04-09_18h47_29.png](https://community.atlassian.com/t5/image/serverpage/image-id/51029i1322D44702116550/image-dimensions/572x336?v=v2 "2019-04-09_18h47_29.png")

4. Wrap all the Table Transformer macros in one Table Transformer macro and use the default preset to merge all the tables in one.

![2019-04-09_18h55_24.png](https://community.atlassian.com/t5/image/serverpage/image-id/51027i56E8BB36631BDE31/image-dimensions/581x305?v=v2 "2019-04-09_18h55_24.png")

![2019-04-09_15h03_14.png](https://community.atlassian.com/t5/image/serverpage/image-id/51030i1B8070CE47B201D2/image-dimensions/565x334?v=v2 "2019-04-09_15h03_14.png")

![2019-04-09_18h56_17.png](https://community.atlassian.com/t5/image/serverpage/image-id/51023i4D39A745684FCAB9/image-dimensions/263x186?v=v2 "2019-04-09_18h56_17.png")


author: Jonathan Smith
body: Hi [@ganesh n](/t5/user/viewprofilepage/user-id/2672103)

You just want to report the number of rows in your tables and not the contents? I wouldn't mind seeing an example of your parent summary page.

- Jon

comments: author: ganesh n
body: [@Jonathan Smith](/t5/user/viewprofilepage/user-id/1254033) That's correct. I want the number of rows in the child pages on the parent page. I have updated the question with an example.