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

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

Top Kudoed Authors