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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
v-cgao-msft
Community Support
Community Support

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors