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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
music43
Advocate II
Advocate II

Hide rows if another DAX measure returns blank

Hi

 

I have two fact tables (Sales transactions and Product Prices*) which share relationships with multiple dimension tables:

 

DimProduct (1) to (m) fctSales

DimProduct (1) to (m) fctPricing

DimCustomer (1) to (m) fctSales

DimCustomer (1) to (m) fctPricing

 

I have 2 DAX measures. 1 calculates the margin based on selling price against cost based on a What-If parameter (only showing results that are less than or equal to the What-If parameter value). The 2nd DAX measure calculates the value sales.

 

I have created a simple matrix with customer and product on the rows and added both measures.

 

The margin measure correctly hides values that exceed the What-If parameter but when I add the other sales value measure I get more rows and the 1st measure shows blanks.

How can I hide values/blank values in the 2nd measure when the 1st measure returns a blank?

 

*over complicated pricing - each product can have 1 to 4 different prices/qty breaks per customer

 

Thanks

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @music43 

in the filter pane select the measure and choose "Not Is blank" and applythe filter.  

View solution in original post

2 REPLIES 2
tamerj1
Super User
Super User

Hi @music43 

in the filter pane select the measure and choose "Not Is blank" and applythe filter.  

Thanks @tamerj1 

That appears to have done what I need. I think I was so focused on a DAX solution, I forgot about the filter options!


Thanks again.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.