Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Table Summarization from child pages

ganesh n
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 5, 2019

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

 

2 answers

1 vote
Natalie Paramonova _Stiltsoft_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 9, 2019

Hello,

Starting from version 5.0.0, the Table Filter and Charts 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 macro and to transform and combine excerpted tables in one master table with the help of the Table Transformer 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

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

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

2019-04-09_18h56_43.png

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

2019-04-09_15h03_14.png

2019-04-09_18h56_17.png

0 votes
Jonathan Smith
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 5, 2019

Hi @ganesh n

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

ganesh n
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 5, 2019

@Jonathan Smith 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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events