Table tranformer for Confluence
Asked by Rafi Ahmad:

Hi Community,

I have a problem statement and thinking how can I use SQL Table Transformer Macro for Confluence.

1. I have three tables coming from three different excerpt include with same columns (some are date column, some text field, some status column).

2. I would want to build 4th table with selected columns and some column to have merged information from three tables -

How can I write query based on Project code (unique field, present on all three tables) to fetch columns like Project Name, Porject Code, Project Status (status field), Highlights, upcoming release - stressing that those three tables are 3 domains for a Project so 4th table will have merged information for highlights and next steps and Status will be Green if all are Green AND Yellow if one of them is Yellow AND RED if one of them is RED.

If one PR# is just present in one table, bring the same information without any transformation.

|----------------|------------|------------|--------|---|--------------------------------|------------|------------|--------|---|
| Domain 1 table |            |            |        |   | Domain 2 table                 |            |            |        |   |
| PR#            | Highlights | Next Steps | Status |   | PR#                            | Highlights | Next Steps | Status |   |
| PR101          | xx         | yy         | Green  |   | PR101                          | ii         | ll         | Green  |   |
| PR102          | AA         | BB         | Yellow |   | PR102                          | mm         | nn         | Yellow |   |
| PR105          | DD         | EE         | Green  |   | PR108                          | VV         | ZZ         | Green  |   |
|                | GG         | PP         | Green  |   | PR109                          | MN         | JK         | Green  |   |
| Domain 3 table |            |            |        |   | **Expected Transformed table** |            |            |        |   |
| PR#            | Highlights | Next Steps | Status |   | PR#                            | Highlights | Next Steps | Status |   |
| PR101          | pp         | qq         | Green  |   | PR101                          | xx ii pp   | yy ll qq   | Green  |   |
| PR102          | ww         | gg         | Green  |   | PR102                          | AA mm ww   | BB nn gg   | Yellow |   |
| PR109          | VV         | ZZ         |        |   | PR108                          | VV         | ZZ         | Green  |   |
| PR110          | WE         | WE         |        |   | PR105                          | DD         | EE         | Green  |   |
|                |            |            |        |   | PR109                          | VV         | ZZ         | Green  |   |
|                |            |            |        |   | PR110                          | WE         | WE         |        |   |


Answers:
author: Katerina Kovriga {Stiltsoft}
body: Hi [@Rafi Ahmad](/t5/user/viewprofilepage/user-id/4707920) ,

We can suggest the following steps:

![Tue 5-1.png](https://community.atlassian.com/t5/image/serverpage/image-id/178341i4110A09F7FFDC38C/image-size/large?v=v2&px=999 "Tue 5-1.png")

Here I merge my manually created tables via the Table Transformer macro but you can use the report function of the Table Excerpt Include macro as you reuse your tables via the Table Excerpt macros. As a result, you'll get the following table:

![Tue 5-2.png](https://community.atlassian.com/t5/image/serverpage/image-id/178342iC199FA625B333628/image-size/large?v=v2&px=999 "Tue 5-2.png")

![Tue 5-3.png](https://community.atlassian.com/t5/image/serverpage/image-id/178343i150724F0F20D3ADA/image-size/large?v=v2&px=999 "Tue 5-3.png")

Now we use the Table Transformer macro to group our table by the "PR#" column:

![Tue 5-4.png](https://community.atlassian.com/t5/image/serverpage/image-id/178345i2B5506FBC04A7025/image-size/large?v=v2&px=999 "Tue 5-4.png")

SELECT T1.'PR#',  
SUM(T1.'Highlights' + " ") AS 'Highlights',  
SUM(T1.'Next Steps' + " ") AS 'Next Steps',  
SUM(T1.'Status' + " ") AS 'Status'  
FROM T\* GROUP BY T1.'PR#'

![Tue 5-5.png](https://community.atlassian.com/t5/image/serverpage/image-id/178346iD81BDA90BA4285F2/image-size/large?v=v2&px=999 "Tue 5-5.png")

The last step is to use another Table Transformer macro to set conditions for your statuses:

![Tue 5-6.png](https://community.atlassian.com/t5/image/serverpage/image-id/178347iE4C6360571C1C386/image-size/large?v=v2&px=999 "Tue 5-6.png")

SELECT \*,  
CASE WHEN T1.'Status' LIKE "%Red%"  
THEN "Red"  
WHEN T1.'Status' == "Green Green Green" OR T1.'Status' == "Green Green" OR T1.'Status' == "Green"  
THEN "Green"  
ELSE  
"Yellow"  
END  
AS 'Status' FROM T\*

![Tue 5-7.png](https://community.atlassian.com/t5/image/serverpage/image-id/178348iA0B82C6727020355/image-size/large?v=v2&px=999 "Tue 5-7.png")

Hope this helps.


author: Katerina Kovriga {Stiltsoft}
body: Hi there,

As this question mentions our [Table Filter and Charts for Confluence](https://marketplace.atlassian.com/apps/27447/table-filter-and-charts-for-confluence?tab=overview&hosting=cloud&utm_source=atl_community) app, we are happy to introduce its new macro -- [Table Spreadsheet](https://docs.stiltsoft.com/display/public/TFAC/How+to+use+Table+Spreadsheet+macro?utm_source=atl_community).

The macro allows you to work with fully functional Excel spreadsheets right in Confluence.

You'll be able to use cells' formulas, filters, conditional formatting, etc., create pivot tables and charts from the page view and edit mode.

The Table Spreadsheet macro is available for Cloud and Server/Data Center.

![](https://docs.stiltsoft.com/download/attachments/83100938/Conditional%20formatting.png?version=1&modificationDate=1641987630000&api=v2&effects=border-simple,shadow-kn)


author: Rafi Ahmad
body: ![Error.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/178373i50D473345F84DD2A/image-size/large?v=v2&px=999 "Error.JPG")


author: Rafi Ahmad
body: Thanks [@Katerina Kovriga {Stiltsoft}](/t5/user/viewprofilepage/user-id/1464746)

1. When I put this query to fetch group by PR#, I am getting below error. Can you pls suggest

SELECT T1.'PR#', T1.'Project Name',  
SUM(T1.'Highlights' + " ") AS 'Highlights',  
SUM(T1.'Next Steps' + " ") AS 'Next Steps',  
SUM(T1.'Status' + " ") AS 'Status'  
FROM T\* GROUP BY T1.'PR#'  

TypeError: Cannot read properties of undefined (reading 'PR#')

2. I also forgot to mention, if one or all three base tables have some record with no PR# mentioned, I would not like to show them on 4th Table, how to accomodate this exclusion pls (modified the example above)?

3. If status is blank for all of them, show as Blank on 4th table AND if status is blank for one of the table, still follow the same rule as explained above to populate status on 4th table (modified example above).  

comments: author: Katerina Kovriga {Stiltsoft}
body: 1. I see from your screenshot that you are trying to group an unmerged table: there are two tables in a kind of a panel macro. In my example I used a separate Table Transformer macro to merge the table into a big combined one and then used another Transformer to group my entries.

2. We group our entries by PR#, if a blank PR# will appear, it can be hidden (filtered out) with the help of the Table Filter macro (filter for empty cells).

3. What concerns blank statuses, it's always more convenient not to leave your cells empty but to use another status type such as "Undefined". If you want to operate with empty cells, their contents is NULL for the Table Transformer macro. So, you may modify your query with statuses.


author: Katerina Kovriga {Stiltsoft}
body: Thought I'd better take screenshots for the blank PR#, Table Filter and reversed filters.

Here are your modified tables with empty PR# cells:

![Wed 9-1.png](https://community.atlassian.com/t5/image/serverpage/image-id/178429iC1B99F18F72E1A44/image-size/large?v=v2&px=999 "Wed 9-1.png")

Here is how your result table will look after the last Table Transformer macro:

![Wed 9-2.png](https://community.atlassian.com/t5/image/serverpage/image-id/178430i44FF119DDECFA2C2/image-size/large?v=v2&px=999 "Wed 9-2.png")

Now we need to set a reversed dropdown filter for "Empty" PR# value with the help of the Table Filter macro:

![Wed 9-3.png](https://community.atlassian.com/t5/image/serverpage/image-id/178431i08A0A24885721416/image-size/large?v=v2&px=999 "Wed 9-3.png")![Wed 9-4.png](https://community.atlassian.com/t5/image/serverpage/image-id/178433i9A50F8FCCE5B8B3A/image-size/large?v=v2&px=999 "Wed 9-4.png")![Wed 9-5.png](https://community.atlassian.com/t5/image/serverpage/image-id/178432iD5DD0B01AAEFFB14/image-size/large?v=v2&px=999 "Wed 9-5.png")

Hope this helps.


author: Katerina Kovriga {Stiltsoft}
body: And here is a more beautiful solution from our developers:

The internal Table Transformer macro

![Wed 10-1.png](https://community.atlassian.com/t5/image/serverpage/image-id/178491iAC9A4F397C4FF37A/image-size/large?v=v2&px=999 "Wed 10-1.png")

SELECT 'PR#',  
SUM('Highlights' + " ") AS 'Highlights',  
SUM('Next Steps' + " ") AS 'Next Steps',  
SUM('Status' + " ") AS 'Status'  
FROM (  
SELECT \* FROM T\* WHERE 'PR#' IS NOT NULL  
) GROUP BY 'PR#'

![Wed 10-2.png](https://community.atlassian.com/t5/image/serverpage/image-id/178492i7D0D6CDA081EF287/image-size/large?v=v2&px=999 "Wed 10-2.png")

The external Table Transformer macro

![Wed 10-3.png](https://community.atlassian.com/t5/image/serverpage/image-id/178494i3654405612D983FE/image-size/large?v=v2&px=999 "Wed 10-3.png")

SELECT \*,  
CASE WHEN T1.'Status' LIKE "%Red%" THEN "Red"  
WHEN T1.'Status' LIKE "%Yellow%" THEN "Yellow"  
ELSE "Green"  
END  
AS 'Status' FROM T\*

![Wed 10-4.png](https://community.atlassian.com/t5/image/serverpage/image-id/178495iBC4CFAC21171D941/image-size/large?v=v2&px=999 "Wed 10-4.png")

Hope this helps.


author: Rafi Ahmad
body: [@Katerina Kovriga {Stiltsoft}](/t5/user/viewprofilepage/user-id/1464746)

Thanks for your suggestion, since I don't have toolbox, I have keep wrapping one transofrmer over other.

I used your updated SQL and it seems to be working fine except group by PR# is throwing up additonal 0 next to concatenated status for PR which is present in either one or two tables not in all tables. Can you please look inot this.

Also I am planning to use CHAR(10) to give line break when transformed table concatenate Highlights and Next steps. Can you please test this at your end, somehow CHAR(10) seems to be working for one Highlights and not for next steps. I may be putting it incorrectly. Pls. see screenshots.

And I can see status on transformed table has lost it's format and it's displaying plain text than Status macro that I had on my oroginal table and on merged table. Any clue pls?


author: Rafi Ahmad
body: Pls see screenshot.

![Tables 1 2 3.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/178611i333DEDD092327749/image-size/large?v=v2&px=999 "Tables 1 2 3.JPG")![Final.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/178612iCBEEB5DA9F0A2827/image-size/large?v=v2&px=999 "Final.JPG")


author: Katerina Kovriga {Stiltsoft}
body: Try this modified SQL query for the internal Table Transformer macro:

SELECT 'PR#',  
FORMATWIKI(SUM('Highlights' + " \\n")) AS 'Highlights',  
FORMATWIKI(SUM('Next Steps' + " \\n")) AS 'Next Steps',  
SUM(IFNULL('Status', "") + " ") AS 'Status'  
FROM (  
SELECT \* FROM T\* WHERE 'PR#' **IS NOT NULL**   
) GROUP BY 'PR#'

![Wed 12-1.png](https://community.atlassian.com/t5/image/serverpage/image-id/178620i43C04F14A2D02535/image-size/large?v=v2&px=999 "Wed 12-1.png")


author: Rafi Ahmad
body: Thanks [@Katerina Kovriga {Stiltsoft}](/t5/user/viewprofilepage/user-id/1464746) , really appreciate the support. it worked.

I can see status on first and second transformed table has lost it's format as it's displaying plain text (Green, Yellow, Red) than Status macro that I had on my oroginal table and on merged table. Any clue pls?

And if final status is either Red or Yellow, wondering if there is any way to introduce a link which on click can take you to the base table details?

Additionally, what if one of the table has lower upper case mixed under PR# column, will that impact grouping by PR#? And suppose PR# is consistent, what if Project Name has upper lower case mixed on different base tables (if include Project name to my final table), how will grouping react and treat Project Name or PR# in that case?


author: Katerina Kovriga {Stiltsoft}
body: Use the FORMATWIKI option in the external Table Transformer macro to set [colorful statuses](https://docs.stiltsoft.com/display/public/TFAC/Advanced+table+cells+formatting#Advancedtablecellsformatting-Conditionalinsertingofstatuses):

SELECT \*,  
CASE WHEN T1.'Status' LIKE "%Red%"  
THEN FORMATWIKI("{status:colour=Red\|title=Red}")  
WHEN T1.'Status' LIKE "%Yellow%"  
THEN FORMATWIKI("{status:colour=Yellow\|title=Yellow}")  
ELSE FORMATWIKI("{status:colour=Green\|title=Green}")  
END  
AS 'Status' FROM T\*

The upper/lower case is important for the Table Transformer macro, so you'll need to create tables with similar guidelines. The PR103 and Pr103 we'll be regarded as two different projects.


author: Rafi Ahmad
body: [@Katerina Kovriga {Stiltsoft}](/t5/user/viewprofilepage/user-id/1464746) - Understood the FORMATWIKI thing, thanks again.

Seems you missed to answer, on final table under status column, if it's Red or Yellow, is there any way to establish a link which on click can take me to the parent base table which is deriving the status (assume base tables are coming through excerpt from another confluence page)?

In a few days, I am hoping to get the requirement complex with the condition, will touch based to check if there is any solution on back of table transformer.

Appreciate your support.


author: Katerina Kovriga {Stiltsoft}
body: We have an opportunity to show the source page metadata (Page Title) in the Table Excerpt Include macro - does this option work for you?


author: Katerina Kovriga {Stiltsoft}
body: I mean not for the aggregated table, of course, everything will be mixed up there, but to reuse your source tables once more and to show Page Titles for the quicker navigation to the pages with Excerpts.


author: Rafi Ahmad
body: [@Katerina Kovriga {Stiltsoft}](/t5/user/viewprofilepage/user-id/1464746)

Page title is embedded on my first 3 base tables (as they are populated through excerpt include), then merged, then double transformed to arrive at final table. I would hide all the base source tables and intermediate tables to just show the final table. If you can detail, how can I show source page title / link?


author: Katerina Kovriga {Stiltsoft}
body: I really don't see how the source page title is supposed to be shown in the result table. The table is grouped so each row with the final status will have up to three page titles.

As I understand from the previous posts, you want to visit the source pages if the final status is not green (if the source statuses are yellow or red). So I suggest reusing you tables once more, combine them into one report and wrap them into the Table Filter macro with predefined filters for yellow and red statuses.

To have this table look more neat, you may use pagination via the Table Filter macro settings and paste the reused table wrapped into the Table Filter macro under the Expand macro.


author: Rafi Ahmad
body: [@Katerina Kovriga {Stiltsoft}](/t5/user/viewprofilepage/user-id/1464746)

Thanks for your response. Yeah could imagine it may be challenging to navigate to source data from click of color (Red, Yellow). However your suggestion of Pagination gave me good pointer on using the Pagination on final group by table. So checking if I can apply Table filter macro on top of final table and still take advantage of pagination if final table is big in size with 100 rows. I tried but it seems I am not able to wrap final table transfromer under table macro. Can you pls suggest.


author: Katerina Kovriga {Stiltsoft}
body: There are no any limitations in macro usage - what do you mean by "you can't wrap the final Transformer into the Table Filter macro"? Try to paste the new empty Table Filter macro on the page, then copy the whole sequence of the macros and reused tables, place the mouse cursor inside this Table Filter macro and paste the copied data.


author: Rafi Ahmad
body: [@Katerina Kovriga {Stiltsoft}](/t5/user/viewprofilepage/user-id/1464746) - Thanks, placement of macro was incorrect, now it's wokring fine.

I foind another issue - If you wrap a excerpt include (not except table include) with Table filter with pagination set, on top put Pivot and finally wrap with Chart from table - On click of any any stacked column chart, it's taking me to right of pivot table and finally lands me to base table but relevant data row doesn't appear in page 1 but at page 5 and 6 where exatly they sit without filter. Would you know if such filter not adjust pagination based on how filtered records to be displayed instead of display content on same page which was there withouth filter?


author: Katerina Kovriga {Stiltsoft}
body: Yes, you are right - if you exclude the Pivot Table macro and create a sequence "table \<- Table Filter \<- Chart from Table" then without pagination the chart will be based on the filtered table and when you click its pie sections/bars the table under the chart will be filtered once more as well accordingly to the selected area.

If you set pagination in the Table Filter macro, then the Chart from Table macro will take the whole filtered table (all the pages) to built the result chart, but the additional filtration via the Chart from Table macro won't be working.

I'll reach out to our team to see if anything can be done with the issue.

If you have the Pivot Table macro between the Chart from Table and Table Filter macro, then the result table from the Pivot Table macro will be filtered while clicking on the chart bars. And you may simply hide the table with pagination coming from the Table Filter macro.

Please clarify which hosting do you use? I've got that you wrap macros directly, so is it Cloud but its old editor or Server/Data Center?


author: Rafi Ahmad
body: [@Katerina Kovriga {Stiltsoft}](/t5/user/viewprofilepage/user-id/1464746)

I am using this sequence to merge program status coming from different projects (tables) together which individually has many other fields like project name, number, status, highlights, next steps, project stage, upcoming release etc.

intention here is using below sequence to create a porgram merged view

Base Table/s coming through excerpt \> Merge tables via Table transformer \> group by project code via table transformer \> Set status based on condition via table transformer \> Wrap it up with table filter to enable pagination (as we have close to 80-90 projects) \> pivot the data (to find count by project stage and status etc.) \> finally use chart from table to show overall count via column chart

So what I mean is, when I click on column chart section, it's filtering data on pivot and when it cascades down further to paginated final table, filtered data is shown on table here but on the page where it sits assuming you didn't click any area on top column chart and leaving other pages of paginated table blank. Screenshot attached.

I want to show paginated table data as it actually established traceability right from top to bottom - chart \> pivot \> final merged table with status. If I hide the paginated table then it serves no purpose and doesn't take us down to final data set.

![12.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/179064iCE6D4D12F8FFC2B9/image-size/large?v=v2&px=999 "12.JPG")![11.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/179065iD56FE14467780EF3/image-size/large?v=v2&px=999 "11.JPG")


author: Katerina Kovriga {Stiltsoft}
body: I've got your idea but right now it is not possible to accomplish.


author: Katerina Kovriga {Stiltsoft}
body: We've created a new ticket regarding filtering with pagination by clicking on the chart sections and added your vote to this improvement. I'll reach to you here when the feature will be implemented.

Please tell which hosting do you use? I've got that you wrap macros directly, so is it Cloud but its old editor or Server/Data Center?

As for now there are no any options besides hiding the paginated table or showing the whole table without pagination.


author: Rafi Ahmad
body: [@Katerina Kovriga {Stiltsoft}](/t5/user/viewprofilepage/user-id/1464746)

ok thanks for your input, we are using Confluence datacenter 7.4.13 for hosting.


author: Rafi Ahmad
body: [@Katerina Kovriga {Stiltsoft}](/t5/user/viewprofilepage/user-id/1464746)

Just a one off question about confluence content if you can suggest. I have a confluence page which is executive report contains sections like Key Accomplishment for the month, risk, operations, OkR and other updates. I have to give this page an executive look. I have used macros like we discussed about risk and other macro to support various content and finally used confluence content layout macro to organize the navigation from this another pages.   
what I am planning is to keep week's highlights on this page as a content to read and every other section is hyperlinked through confluence content layout macro.   
Can you pls suggest any macro or solution to give week's highlights an executive look (apart formatting I can do), basically any design suggestion that can keep highlights on spotlight and make the content looks rich and jazzy. Since this is landing page, I want to implement a good design here. Any suggestion here pls.   
OR if you can share some executive dashboard built on back of confluence that I can refer to see how can that be built in confluence.   
thanks


author: Katerina Kovriga {Stiltsoft}
body: Hi [@Rafi Ahmad](/t5/user/viewprofilepage/user-id/4707920) ,

What concerns the standard macros, we often use the [Panel](https://confluence.atlassian.com/doc/panel-macro-51872380.html) macro to highlight important sections of the page.

To place, for example, several charts on the same level and create a kind of a dashboard, you may use [page layouts](https://confluence.atlassian.com/doc/page-layouts-columns-and-sections-275188613.html) or a combination of the [Section](https://confluence.atlassian.com/doc/section-macro-51872531.html)/[Column](https://confluence.atlassian.com/doc/column-macro-51872396.html) macros.

There are also different formatting apps on the Atlassian Marketplace (maybe even free ones). We also develop the [Handy Macros](https://marketplace.atlassian.com/apps/1214971/handy-macros-for-confluence-formatting-and-interactive-ui?hosting=datacenter&tab=overview) app that allow you to use beautiful buttons with links, tooltips and other formatting stuff.


author: Rafi Ahmad
body: [@Katerina Kovriga {Stiltsoft}](/t5/user/viewprofilepage/user-id/1464746)

Ok thanks, will explore. Wondering if Panel macro can be embedded within Confluence content macro that I have it under Content layout macro? Would you know- I can see preview working content layout \> confluence content \> Panel but when I publish the page, Panel is not reflecting under Confluence content macro.


author: Katerina Kovriga {Stiltsoft}
body: Do you mean the Table of Contents macro inside the Panel macro? Will check tomorrow how it works for me and if the Panel macro recognizes the dynamic content.


author: Rafi Ahmad
body: [@Katerina Kovriga {Stiltsoft}](/t5/user/viewprofilepage/user-id/1464746) - I mean once you have Content layout macro, under that you insert Confluence Content macro and finally Panel macro inisde, preview shows that Panel is updated with the content but after I publish the page, changes are not reflected the way it shows in preview.

Content layout macro \> Add module as Confluence content macro (it's an option that comes on page when you have content layout macro) \> Add Panel to color your boundaries/text etc.

Please see screenshots.


author: Rafi Ahmad
body: ![1.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/179770iCDB34CB5DAA01AD0/image-size/large?v=v2&px=999 "1.JPG")![2.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/179768iE41D707830D5ACF6/image-size/large?v=v2&px=999 "2.JPG")![3.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/179769iEB7BEE97F12D3761/image-size/large?v=v2&px=999 "3.JPG")


author: Katerina Kovriga {Stiltsoft}
body: It seems to me that you are talking about [this macro](https://docs.refined.com/space/REFINEDCONFDC/3594912425#:~:text=Using%20the%20Content%20Layout%20macro,-Usage%20note&text=This%20macro%20is%20intended%20for,in%20the%20regular%20page%20editor.&text=In%20the%20Confluence%20editor%2C%20choose%20Insert%20%3E%20Other%20Macros.) from the 3rd party app. So I won't be able to help here.


author: Rafi Ahmad
body: [@Katerina Kovriga {Stiltsoft}](/t5/user/viewprofilepage/user-id/1464746)

I see, I'll check with 3rd party on this macro.   
1. Checking if you managed to find out if any macro like excerpt include can be added inside panel to support dynamic content?

2. Going by your suggestion above. I don't have page layout macro here, so trying to find out a workaround to create a layout within a panel to house like executive summary and couple of screenshots to give a better look overall for landing dashboard, can you pls suggest how can play with inside Panel macro to further section the area? If I use layout overall, it changes layout for entire page but I want to define layout within panel macro so it gives a dashboard look within a panel. Would you know how can I achieve this.   
thanks and I'm enhancing my status series macro nesting with real time data to see if it goes smooth.   
appreciate your help.


author: Katerina Kovriga {Stiltsoft}
body: Hi [@Rafi Ahmad](/t5/user/viewprofilepage/user-id/4707920) ,

Standard layouts work for the whole page section. To be more precise, use the Section/Column macros mentioned in the previous answer - you may put them into the Panel macro.

![Wed 14-1.png](https://community.atlassian.com/t5/image/serverpage/image-id/179931i4D7127462243F886/image-size/large?v=v2&px=999 "Wed 14-1.png")

Into the first column I've placed a Jira Charts macro - a dynamic one just to check if it will be published.

Here is how the published page looks:

![Wed 14-2.png](https://community.atlassian.com/t5/image/serverpage/image-id/179933iE88B697A93012CD9/image-size/large?v=v2&px=999 "Wed 14-2.png")


author: Rafi Ahmad
body: [@Katerina Kovriga {Stiltsoft}](/t5/user/viewprofilepage/user-id/1464746)

Ok, I think if I use section for whole page I gain some and loose some control, so is the case with using Panel\>Section\>Column. I have attached both the view.

What I really want is :-

One big panel for whole page \> Left hand side single stretched view to house Eecutive summary (as you can see in image) and right hand side of the page gets divided into into three section (matching up to the left hand side) to house three different content as you can see.

With page section view, I am not able to make one panel and let all section sit within and arranged as I explained.

With Panel\>Section\>Column view, I get nice panel header but I get to chosee column divider (%) which goes in a swimlane against I wanted something like I attached the ppt. version. ![11.png](https://community.atlassian.com/t5/image/serverpage/image-id/180117iAA30D3C6FF636310/image-size/large?v=v2&px=999 "11.png")![22.png](https://community.atlassian.com/t5/image/serverpage/image-id/180116i6C660787283B0B91/image-size/large?v=v2&px=999 "22.png")![ppt. version.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/180115i630D7DC7820B5CCA/image-size/large?v=v2&px=999 "ppt. version.JPG")


author: Katerina Kovriga {Stiltsoft}
body: You may try to use plain table inside the Panel macro:

![Thu 7-1.png](https://community.atlassian.com/t5/image/serverpage/image-id/180154iA99106F11E59208B/image-size/large?v=v2&px=999 "Thu 7-1.png")

Or the Tip macro to create panel headings instead of the Panel macro and the table underneath.

Nothing more to suggest from my side using the standard macros.


author: Rafi Ahmad
body: [@Katerina Kovriga {Stiltsoft}](/t5/user/viewprofilepage/user-id/1464746)

I think putting a table inisde panel is a good sugestion, using tip macros is ok but it makes a big header and eats up the space. You can see from screenshot.

what spteps did you follow to create above table view - I am trying to create one but it seems the steps I am following to give above table structure isn't that neat as your design. Can you pls share steps to create the above table so I don't use create table inside table which isn't pretty.![Capture.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/180251i5DC150F813E12DE1/image-size/large?v=v2&px=999 "Capture.JPG")


author: Katerina Kovriga {Stiltsoft}
body: I've just removed all the macros from the Panel macro and pasted a plain table without the header row (hold Shift while inserting the table). Then I've simply merged the first column:

![Thu 9-1.png](https://community.atlassian.com/t5/image/serverpage/image-id/180253i0BF841B8C9ADB6AD/image-size/large?v=v2&px=999 "Thu 9-1.png")

Nothing special here at all.


author: Rafi Ahmad
body: [@Katerina Kovriga {Stiltsoft}](/t5/user/viewprofilepage/user-id/1464746)

Hey there, circling back - wondering is there any way to keep column hidden on table filter macro when you get into edit mode to update the table. I have a large table and team finds it difficult to update or traverse through the table when they are trying to make changes. Was wondering hiding column through table filter is good idea compact the view but while editing those column are present on table hence navigating through table is a pain. Is there any workaround?


author: Katerina Kovriga {Stiltsoft}
body: This option is present for Server/Data Center users: go to the Edit mode and click the Show filter button.

![Fri 9-1.png](https://community.atlassian.com/t5/image/serverpage/image-id/181576iC54CF75ED9ECF223/image-size/large?v=v2&px=999 "Fri 9-1.png")

All the predefined filters as well as hidden columns will be immediately applied to the table in the Edit mode as well:

![Fri 9-2.png](https://community.atlassian.com/t5/image/serverpage/image-id/181577i420F2BDC42574782/image-size/large?v=v2&px=999 "Fri 9-2.png")


author: Rafi Ahmad
body: [@Katerina Kovriga {Stiltsoft}](/t5/user/viewprofilepage/user-id/1464746) Pls ignore, will post back the problem statement soon.


author: Katerina Kovriga {Stiltsoft}
body: Hi,

You may use the Table Filter macro for the first case. Set the Free Text filter for the PR# column and filter for the "PR" or whatever project name you need on the fly.

And in the SQL queries of the Table Transformers we used the "WHERE 'PR#' IS NOT NULL" condition. You may change it to WHERE 'PR#' IS LIKE "PR%" to leave the cells beginning only with the PR characters.

What concerns the statuses, it seems that I've posted the query on Jan, 19 (where we checked if the aggregated status string included this or that word).

Seems it would be better to create a [support ticket](https://jsd.stiltsoft.com/servicedesk/customer/portal/2) at this stage.

As you have Server/Data Center, you'll be able to attach the Page Storage (upper right corner of the page - menu ... - View Storage Format). If you don't see the option, ask your Confluence administrator to do it for you.

As you've mentioned that you reuse your source tables and there are three of them, you should give us four page storages: for each source page and for the master page.

Then we'll be able to replicate exactly your pages with the source tables, macros and their settings/queries and try to help with adjustments (and maybe simplify smth).


author: Katerina Kovriga {Stiltsoft}
body: One more idea from me regarding the second question: maybe the FORMATWIKI function failed to set green status for the empty aggrerated cell with statuses because it is really empty? Like when you don't have any status and just leave the cell blank in the source table (don't use "-" or smth).

The workaround may be to insert the "-" character, for example, into the empty cells beforehand to operate with the string later. Please see [this example](https://community.atlassian.com/t5/Confluence-questions/How-to-get-a-vote-count-from-the-data-in-a-table-cell/qaq-p/2001044) (the second part of the query).

In your case it will be the same - we fulfill the empty cells and then set statuses by a pattern. "Else" goes for green, so it should work as required.


Tags: atl-gruland

cloud

confluence-cloud

marketplace