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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.