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
Anonymous
Not applicable

hide measure for one of the conditions

So, here I have different "statuses". The "number of work weeks" measure has to be displayed only for the RTBS and not for the others. At the moment, it's being displayed as blank for all the other statuses except RTBS. However, I want to make it so that the measure is displayed only for the "RTBS" and not for others. So, only RTBS should display 3 measures others should only display 2. Is there a way to do this ?question.PNG

 

4 REPLIES 4
CoreyP
Solution Sage
Solution Sage

You need to create a dim table with the SAP Status and the relevant measures, like so:

CoreyP_0-1702353314976.png

( I only typed in 2 for example, but you'll need it for all your statuses )

Create a relationship to your SAP Status column in your fact table. Use the status and measure fields from this table in your matrix visual. Then you'll need to write a measure to do the appropriate calculation depending on the row context of measure. Like so:

CoreyP_1-1702353431174.png

 

Anonymous
Not applicable

I did what you suggested me to do but I'm not able to generate what i would like to. Please help Capture_DEC12.PNG

 

The measure I provided was just an example. You have to actually edit it to return a measure for each condition. Right now, it's just text.

Anonymous
Not applicable

what will be the next step after this 

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.