IFERROR DAX Function in Power BI

The IFERROR dax function evaluates an expression and returns a specified value if the expression returns an error; otherwise returns the value of the expression itself.

DAX Syntax IFERROR(value, value_if_error)

The function has the following parameters:

Example: Let’s create a measure with name “IFERROR Measure”.

DAX

IFERROR Measure = IFERROR(5/0, 0)

The output of the above dax code is shown below:

IFERRORax function in Power BI

Let’s modify the measure.

DAX

IFERROR Measure = IFERROR(10/5, 0)

The output of the above dax code is shown below:

IFERROR dax function in Power BI