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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

DAX - Calculate Measure ONLY if another measure = 0

Hi there!

I have two measures, [Promo Vol] and [Total Vol] - you can see the results in this table

 

Capture.PNG

I just want to create another measure that will sum up the [Total Vol] but ONLY in cases where [Promo Vol] > 0

So in this case the output value I'm looking for is £334,948 (i.e. sum of everything in [Total Vol] except the last two rows because the Promo Vol is 0

Does anyone have any suggestions?

 

Thanks

 

Alex

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Try a measure like

sumx(values(Table[Date]), if([Promo Vol] > 0, [Total Vol],blank()))

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

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , Try a measure like

sumx(values(Table[Date]), if([Promo Vol] > 0, [Total Vol],blank()))

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

Legend, thank you! 😘

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors