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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

if error

hiii

i was trying to calculate sla% based on priority but i am getting an error while using IFERROR function

image.png

 

1 ACCEPTED SOLUTION
Anand24
Super User
Super User

Hi @Anonymous ,

 

IFERROR Dax function needs 2 arguments to be passed while you have provided just 1 argument. 

 

Syntax: IFERROR(Value1, Alternate Value if value1 results to error)

 

If MitigationHit/MitigationCount results to error, what value should be returned it missing in you formula. Please include another arugument and this should work fine. 

 

Reference Link: https://docs.microsoft.com/en-us/dax/iferror-function-dax#example 

 

Give a thumbs up if this post helped you in any way and mark this post as solution if it solved your query !!!

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

HI @Anonymous 

Use 

pranit828_0-1598749715549.png

Alternatively use DIVIDE() function.

 

Divide(Query1[Mitigated Hit],Query1[Mitigated Count],0)   //this will return 0 if divided by 0 and is preferred than IFERROR().

 

Anand24
Super User
Super User

Hi @Anonymous ,

 

IFERROR Dax function needs 2 arguments to be passed while you have provided just 1 argument. 

 

Syntax: IFERROR(Value1, Alternate Value if value1 results to error)

 

If MitigationHit/MitigationCount results to error, what value should be returned it missing in you formula. Please include another arugument and this should work fine. 

 

Reference Link: https://docs.microsoft.com/en-us/dax/iferror-function-dax#example 

 

Give a thumbs up if this post helped you in any way and mark this post as solution if it solved your query !!!

MattAllington
Community Champion
Community Champion

You should read the error message. You should also investigate the DIVIDE function as an alternative 



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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