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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors