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
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
Resident Rockstar
Resident Rockstar

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
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.