Pivot table values not updating when using Table Transform
Asked by DJ:

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](https://community.atlassian.com/t5/image/serverpage/image-id/302025iA538B182C6CB3F06/image-size/large?v=v2&px=999 "image.png")


Answers:
author: Stiltsoft support
body: Hi [@DJ](/t5/user/viewprofilepage/user-id/5412696) ,

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.

comments: author: DJ
body: 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.png](https://community.atlassian.com/t5/image/serverpage/image-id/302072i4785F26FA0DA4D7C/image-size/large?v=v2&px=999 "image.png")x

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.


author: Stiltsoft support
body: 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](https://community.atlassian.com/t5/image/serverpage/image-id/302076i85B7BCBEFD7F0F10/image-size/large?v=v2&px=999 "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.


author: Stiltsoft support
body: 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](https://community.atlassian.com/t5/image/serverpage/image-id/302083iAFF513DF734D6271/image-size/large?v=v2&px=999 "Tue 11-1.png")

Page Edit mode:

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


Tags: cloud

confluence-cloud

pivot

table-filter

table-transformer