Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
ofeliajesus
Helper I
Helper I

Filter from a slicer a calculated table with Union

Hi

I need some help.
I have the following calculated table with total values

 

Global Delta =
UNION(
ROW("DIV Code","DIV 01","Total DT",
CALCULATE(
[OrderBook Other DIV]
,OrderBook[Global Dimension 1 Code] = "DIV 01"
),"Delta",
CALCULATE(
[OrderBook Other DIV]
,OrderBook[Global Dimension 1 Code] = "DIV 01"
)- CALCULATE(
[OrderBook Other DIV]
,OrderBook[Global Dimension 1 Code] = "DIV 01"
)),


ROW("DIV Code","DIV 02","Total DT",
CALCULATE(
[OrderBook Other DIV]
,OrderBook[Global Dimension 1 Code] = "DIV 02"
),"Delta",
CALCULATE(
[OrderBook Other DIV]
,OrderBook[Global Dimension 1 Code] = "DIV 02"
)- CALCULATE(
[OrderBook Other DIV]
,OrderBook[Global Dimension 1 Code] = "DIV 02"
)),

ROW("DIV Code","DIV 04","Total DT",
CALCULATE(
[OrderBook Other DIV]
,OrderBook[Global Dimension 1 Code] = "DIV 04"
) -
CALCULATE(
[OrderBook Other DIV]
,OrderBook[Global Dimension 1 Code] = "DIV 04",OrderBook[Project Type Code]="RENOVATIE" ) +
CALCULATE(
[OrderBook Other DIV]
,OrderBook[Global Dimension 1 Code] = "DIV 04",OrderBook[Product Type Code]<>"PROJECT",OrderBook[Project Type Code]="RENOVATIEG" )

,"Delta",
CALCULATE(
[OrderBook Other DIV]
,OrderBook[Global Dimension 1 Code] = "DIV 04"
)- (
CALCULATE(
[OrderBook Other DIV]
,OrderBook[Global Dimension 1 Code] = "DIV 04",OrderBook[Project Type Code]="RENOVATIE" ) +
CALCULATE(
[OrderBook Other DIV]
,OrderBook[Global Dimension 1 Code] = "DIV 04",OrderBook[Product Type Code]<>"PROJECT",OrderBook[Project Type Code]<>"RENOVATIEG" ) )
)

)

 

ofeliajesus_1-1686038899413.png

 

and on the top of the visual, I have a slicer with a date field that represents the last four weeks only four values are available.

ofeliajesus_0-1686038838206.png

 


I want to filter the table with the value in the slicer

Any ideas?
Thank you

4 REPLIES 4
Anonymous
Not applicable

Hi @ofeliajesus ,

 

It seems you want to use the slicer to filter the calculated table.

Calculated tables cannot be responsive to slicers since they are only computed once each time the data model is loaded(Memory Refresh). It is possible to create dynamically calculated tables within a measure but you can't have dynamic tables in your data model.

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

 

Thank you for your answer.

 

I calculated with measures, but I don't know how to create a table with the measure, so my solution is not elegant can you give me an example, please?

 

At the moment I solved with several tables.

 

ofeliajesus_1-1686726978612.png

 

 

Mahesh0016
Super User
Super User

@ofeliajesus Please guide about value which you want to as slicer!THANK YOU!!

The slicer is a date value ...  I would like to filter the data in the table when I change the Date in the slicer, only one date can be selected. 

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.