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
Karolina411
Helper V
Helper V

Using an IF statement to detect 0's as Denominators in DAX to remove false 100%'s

Hello Super Users:

 

I've a problem I cannot seem to solve:

I have data like this: Note that there is a denomintor in week 1/7/2023 that is returning 100%

as the DENOMINATOR IS 0 (the % is from a MEASURE: 

%Avail2Schedule = (DIVIDE([BHSschedOpenings],[BHSAvailHrs],0))
 
How can I add an IF statement or Coalesce to show a 0% on a MEASURE??  It seems so simple but I have already tried a few things like IF (divide([BHSschedOpenings],[BHSAvailHrs] = 0, Blank(), DIVIDE ([BHSschedOpenings],[BHSAvailHrs])) but it does not work.

Karolina411_0-1675265214445.png

 

1 REPLY 1
Anonymous
Not applicable

Hi @Karolina411,

Can you please share a pbix or some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to coding formula.

How to Get Your Question Answered Quickly  

Regards,

Xiaoxin Sheng

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 Kudoed Authors