Cheat Sheets/Power BI/IFERROR
DAX function

IFERRORDAX function reference

Catch and replace an error.

Syntax

dax
IFERROR(<value>, <value_if_error>)

Examples

dax
IFERROR([Ratio], 0)
A value
dax
IFERROR(SUM(Sales[Amount]) / SUM(Sales[Quantity]), BLANK())
Falls back to blank instead of surfacing a divide-by-zero error
dax
IFERROR(VALUE(Product[SKU_Numeric_Part]), -1)
Guards a text-to-number conversion that might fail on malformed SKUs

Common mistakes & gotchas

Related DAX functions

From Logical & error handling

Used in these tutorials

← Back to the Power BI (DAX) cheat sheet