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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
saumitra
Helper I
Helper I

Grouping Measures

Hi Everyone, 

 

I have a Revenue, Projections and Targets table, for which I have created 3 simple DAX Measures. 

 

1. Revenue = sum(Revenue [invoice_amount])/10^5

2. Target = sum(Targets [target])/10^5

3. Projections = sum(Projections [projections])/10^5

 

I would like to club these into a group say - PAT, wherein I can drill up or drill down as required. 

 

Currently my headers look this way: 

 

saumitra_0-1662102606589.png

 

However, I would want it to be like a +/- situation, where I can hide the measures if I click on the minus sign or show measures if I click on + sign. 

 

The idea is to be able to show and hide as required.

 

Is there any way this can be done?

 

Any ideas would be appreciated.

 

Regards,

Saumitra

1 ACCEPTED SOLUTION

@saumitra , Please explore field parameters or calculation groups

 

https://amitchandak.medium.com/power-bi-field-parameters-a-quick-way-for-dynamic-visuals-fc4095ae9af...

 

Calculation Groups- Measure Slicer, Measure Header Grouping, Measure to dimension conversion. Complex Table display : https://youtu.be/qMNv67P8Go0

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

Hi,

I think this similar thread is discussing the solution you are looking for: 
https://community.powerbi.com/t5/Desktop/Slicer-to-hide-or-unhide-measures-in-a-line-chart/m-p/11473...


Hi,

 

I couldn't understand how it will show all 3 measures together if nothing is selected? Kindly please explain. Thanks! 

@saumitra , Please explore field parameters or calculation groups

 

https://amitchandak.medium.com/power-bi-field-parameters-a-quick-way-for-dynamic-visuals-fc4095ae9af...

 

Calculation Groups- Measure Slicer, Measure Header Grouping, Measure to dimension conversion. Complex Table display : https://youtu.be/qMNv67P8Go0

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @amitchandak , I saw the video that you have shared. Great video. I was able to get the slicer measure as I required. 

 

However, in the video you have also grouped Net and Net Target together under "Actuals" and "Target". But in my case, I have Actuals, Targets and Projections. How do you suggest I should add all three into the DAX that you have created? 

 

I tried using the following DAX but it is throwing an error, which I couldn't understand. Kindly please explain. 

 

saumitra_0-1662114337520.png

 

@amitchandak It is not throwing the above error now. It may be because I had copied the Calculation Group like you had, so something must have caused the error. 

 

However, what dax needs to be written in case you have more than 2 categories? I tried the above dax but it doesn't work. Nor does the max function. Kindly help. Thanks.  

I rewatched your video and tried again. It works now. Thanks @amitchandak !

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.