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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
EmmyAmsterdam88
Frequent Visitor

Hide measure in matrix if no sales in current month

Hi all,

 

I was wondering if someone has the answer to the following.

 

I am trying to make a matrix with monthly figures as per underneath, including delta: unitmargin - minimum cost. Since this cost is set static for all months, it shows also for accounts with no volume a delta. However i would like to hide the Delta measure if no volume is sold in the specific month.  

 

Can anybody help on how to do this with dax or another functionality?

 

EmmyAmsterdam88_0-1663240037687.png

 

Thank you,

 

Emmy

 

1 ACCEPTED SOLUTION
daXtreme
Solution Sage
Solution Sage

In your measure check if there's any data for the volume. You can use many functions to do that. One would be ISEMPTY. This is the fastest way but if you can't use it for some reason, then just check if the base measure does not return blank. If not, then return what you need, else - return blank.

View solution in original post

1 REPLY 1
daXtreme
Solution Sage
Solution Sage

In your measure check if there's any data for the volume. You can use many functions to do that. One would be ISEMPTY. This is the fastest way but if you can't use it for some reason, then just check if the base measure does not return blank. If not, then return what you need, else - return blank.

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.