Table transformer with Page Properties Report
Asked by Cecilia Ramirez:

I have several tables in different pages using the Page Property macro and I want to see an aggregated result using Page Properties Report.

The problem is that within the Page Property, I am calculating several fields using the Table Transformer macro. When I save, the calculations are shown in the Page Property but not in the Page Property Report (in here, the columns are blank). Is there a way to fix this? I am missing something?  

P.S. I want to use the Page Property Report and not the Table Excerpt Insert to show the overall view since I need some functionalities that are not possible with Table Excerpt Insert.

Page Property:

![2024-05-23_10h15_21.png](https://community.atlassian.com/t5/image/serverpage/image-id/325548iAB365E8A801AF4D6/image-size/large?v=v2&px=999 "2024-05-23_10h15_21.png")![2024-05-23_10h15_37.png](https://community.atlassian.com/t5/image/serverpage/image-id/325545i9DA4EB81B30B112F/image-size/large?v=v2&px=999 "2024-05-23_10h15_37.png")

Page Property Report:

![2024-05-23_10h15_51.png](https://community.atlassian.com/t5/image/serverpage/image-id/325547i0C56CDAFA2551C85/image-size/large?v=v2&px=999 "2024-05-23_10h15_51.png")![2024-05-23_10h16_03.png](https://community.atlassian.com/t5/image/serverpage/image-id/325549iFD8ADE36600C54B6/image-size/large?v=v2&px=999 "2024-05-23_10h16_03.png")

Thank you!


Answers:
author: Stiltsoft support
body: Hi [@Cecilia Ramirez](/t5/user/viewprofilepage/user-id/5503746) ,

You should change the Page Properties/Page Properties Report macros to the Table Excerpt/Table Excerpt Include macros.

In the Table Excerpt Include macro you tick the "Show as a report" option and get an overall result table.

The Table Excerpt Include macro is supposed to be an advanced version of the Page Properties Report macro, so please elaborate why you want to use the Page Properties Report macro? About what functionalities you are talking about?

comments: author: Cecilia Ramirez
body: Hello! Thank you for the quick response!

<br />

Some of the things that I was not able to do with the Table Excerpt Include (but are available in the Page Properties Report are):

1. Insert the link of every individual page (I was able to "Show page metadata" and select "Page", but I cannot change the column title in the overall view (I would want to use something more descriptive for my use case other than Page as a name column)  
2. I want to be able to select the fields and the order of the columns to include in the page overview (I don't think the Excerpt Include Macro allows you to do this), since the original data contains around 40 different fields and I don't want to show everything in the overall view.  
3. I have 3 slightly different templates that I want to be aggregated into one overview. The Page Properties Report let's you do that. The columns that are not overlapping between the three templates will simply show as blank. With the Table Excerpt Include I was getting three different overview tables since not all of the fields match.

I also tried inserting the table Excerpt macro to my original table and doing the calculations below wrapping the macros like this:  
Page Property -\> Table Transformer -\> Table Excerpt Include

Again, the calculations are shown in that page, but not in the page properties report. I found a similar case where they doing something similar but it is not working for me: <https://community.atlassian.com/t5/Confluence-questions/Table-Transformer-data-not-showing-correctly-in-Page-Property/qaq-p/1420281>


author: Cecilia Ramirez
body: Hello! Thank you for the quick response!

<br />

Some of the things that I was not able to do with the Table Excerpt Include (but are available in the Page Properties Report are):

1. Insert the link of every individual page (I was able to "Show page metadata" and select "Page", but I cannot change the column title in the overall view (I would want to use something more descriptive for my use case other than Page as a name column)  
2. I want to be able to select the fields and the order of the columns to include in the page overview (I don't think the Excerpt Include Macro allows you to do this), since the original data contains around 40 different fields and I don't want to show everything in the overall view.  
3. I have 3 slightly different templates that I want to be aggregated into one overview. The Page Properties Report let's you do that. The columns that are not overlapping between the three templates will simply show as blank. With the Table Excerpt Include I was getting three different overview tables since not all of the fields match.

I also tried inserting the table Excerpt macro to my original table and doing the calculations below wrapping the macros like this:  
Page Property -\> Table Transformer -\> Table Excerpt Include

Again, the calculations are shown in that page, but not in the page properties report. I found a similar case where they doing something similar but it is not working for me: <https://community.atlassian.com/t5/Confluence-questions/Table-Transformer-data-not-showing-correctly-in-Page-Property/qaq-p/1420281>

comments: author: Stiltsoft support
body: What concerns the first point, you may wrap your Table Excerpt Include macro in the Table Transformer macro and rename each column as you wish.

What concerns the second point, in the same Table Transformer macro you'll be able to list only that columns that you want to be shown on the page. The order of listing in the query defines the column order in your result report.

What concerns the third point when, for example, one table has 'Column 1' and 'Column 2' columns and the second table has 'Column 1', 'Column 2' and 'Column 3' columns, you may indeed collect these tables as two separate tables using the Table Excerpt Include macro. And then use the Table Transformer macro on top with the standard Merge preset: your table will be combined into one table. You'll get 'Column 1', 'Column 2' and 'Column 3' but for the part coming from the first table the 'Column 3' cells will be empty.

Then on top of this Table Transformer macro you place another Table Transformer macro for renaming and hiding unwanted columns (points one and two).

The Page Properties Report doesn't support other macros, your case isn't possible as it is.


author: Cecilia Ramirez
body: Hello, I am trying to implement this option but I am not able to show the overall table.   

<br />

My problem is with the Page metadata.   
My Table Excerpt is a vertical table, but I need to show the overall view in a horizontal table. I also need to include the page metadata at the beginning of the table, when I add the page metada in the Table Excerpt, the Table Excerpt Insert gives me two tables instead of one:

![2024-05-27_16h28_50.png](https://community.atlassian.com/t5/image/serverpage/image-id/326120i240616DA84E0E173/image-dimensions/170x217?v=v2 "2024-05-27_16h28_50.png")

I tried creating a Table Transporter to transpose the Table Excerpt Include but the result is weirder.  

![2024-05-27_16h32_23.png](https://community.atlassian.com/t5/image/serverpage/image-id/326121iC4FC2925CDDFC7E4/image-dimensions/229x163?v=v2 "2024-05-27_16h32_23.png")

Am I missing something? Thanks!


author: Stiltsoft support
body: Hi [@Cecilia Ramirez](/t5/user/viewprofilepage/user-id/5503746) ,

You may go to the Table Excerpt Include macro settings and check the Transpose Table option: it may be set as "Never", so you may put the "Auto" or "Always" option if your tables are mostly organized in a horizontal way.

What concerns your workaround with the Table Transformer macro, you may wrap each horizontal table in the Table Transformer macro and then in the Table Excerpt macro on top.

So, your original table is horizontal, you transpose it via the Table Transformer macro and then collect it via the Table Excerpt macro.

The Table Excerpt Include macro combines the already transposed vertical tables.

But the first option with the Table Excerpt Include macro and the Transpose Table option should help.


Tags: filter

page-property

page-property-report

stiltsoft

table

table-excerpt

table-filter

table-filter-and-charts

table-filter-charts-spreadsheets

table-transformer

unknown-hosting-type