cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Slicer for measures in calculated table

Hi all. I'm trying to find a way how to show in report table of measures with time different periods
Something like this:

measures1.png

I'm planned to calculate each value separately, and then merge it with
union( row(measure1_apil, measure1_may, ..), row(measure2_apil)...)
or just simple table {(), ()} and then add colunms from that table to report table.
But after that any slicer stop working.

Can anybody help me with solution how combine these measures into table with working slicers?


I'd appreciate any help you can give me.

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

HI @Anonymous,

It sounds like you want to create fully parameterized visualizations. If that is the case, I'd like to suggest you create two attribute tables with measure names and time periods. 

Then you can use these fields as rows and columns of a matrix and write a measure with switch function to show different values.

My Favorite DAX Feature: SELECTEDVALUE with SWITCH 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

2 REPLIES 2
v-shex-msft
Community Support
Community Support

HI @Anonymous,

It sounds like you want to create fully parameterized visualizations. If that is the case, I'd like to suggest you create two attribute tables with measure names and time periods. 

Then you can use these fields as rows and columns of a matrix and write a measure with switch function to show different values.

My Favorite DAX Feature: SELECTEDVALUE with SWITCH 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
Vera_33
Super User
Super User

Hi @Anonymous 

 

I am not sure what are working slicers...if I understand correctly, you want to show calculation on different gran in one table/matrix. You can have a disconnected column/list to contain your Month (april, may, june) and other gran (last 3 months, last year...etc), then use SWTICH to call different measure

Helpful resources

Announcements
May 2023 update

Power BI May 2023 Update

Find out more about the May 2023 update.

Submit your Data Story

Data Stories Gallery

Share your Data Story with the Community in the Data Stories Gallery.

Top Solution Authors