Forums

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

Pivot table values not updating when using Table Transform

DJ
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!
January 23, 2024

I am having data in the Table Excerpt macro which I am accessing in a Pivot table using Table Excerpt Include. If I apply filter on a column in Table Excerpt, the values in the Pivot table updates itself. However, if I wrap the Table Excerpt in a Table transform for conditional formatting, the values in the Pivot table do not update when a filter is applied on the data present in the Table Excerpt.

image.png

1 answer

1 vote
Stiltsoft support
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.
January 23, 2024

Hi @DJ ,

Not sure that I got your case right:

  • As I see, on the master page you have the Table Excerpt Include macro wrapped in the Pivot Table macro. The Pivot Table is live, because it is based on the live Table Excerpt Include macro
  • On the child page you have a source table wrapped in the Table Excerpt macro
  • As I see from your screenshot, you use the Table Transformer macro on top of the Table Excerpt macro for conditional formatting - sounds good for me

But I don't see the Table Filter macro that you've mentioned - it should be placed between your source table and the Table Excerpt macro. So, firstly you filter your table and then only the filtered data is passed to your Table Excerpt Include macro.

DJ
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!
January 23, 2024

Hi. I have all the macros on the same page like shown in the screenshot. 

There is no need to add a table filter explicitly, as confluence automatically shows a Funnel filter if you hover your mouse on the header row near the column name like below: 

image.pngx

So now the question is that in the original screenshot that I attached in the question, if I remove the Table transformer, the Pivot table receives the filtered data from the excerpt. But if I keep the macro, it does not.

Stiltsoft support
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.
January 23, 2024

The filtration that you use is called "Filtration on the fly": you filter the table in your browser memory but the result is not supposed to be saved or passed anywhere. So, when you enter the edit mode there is no Table Filter macro there.

But when you use such filtration, you may notice a red star near the settings menu:

image2022-8-16_12-8-40.png

When you hit the "Save changes" for the first time, the Table Filter macro will be inserted automatically on the page - you can go to the Edit mode and check it yourself.

But for your case, as I've mentioned earlier, you need to make sure that the Table Filter macro is placed before the Table Excerpt macro because we want to reuse the filtered source table and not the original source one.

Then you may filter you data from the page View mode and everything should be working fine.

Stiltsoft support
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.
January 23, 2024

Also forgot to mention that you should use the filtration panel (not the filters in the headers) if you need to place the Table Filter macro before the Table Excerpt macro.

You filter your original table, save the filter and then reload your page - the Table Excerpt Include macro and your Pivot Table macro will be updated accordingly.

Tue 11-1.png

Page Edit mode:

Tue 11-2.png

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events