ISERROR is a DAX function that checks whether a value is an error and returns TRUE or FALSE accordingly.
Syntax
ISERROR( Value )
Argument | Properties | Description |
---|---|---|
Value | The value you want to test. |
ISERROR is a DAX function that checks whether a value is an error and returns TRUE or FALSE accordingly.
ISERROR( Value )
Argument | Properties | Description |
---|---|---|
Value | The value you want to test. |
A Boolean value of TRUE
if the value is an error; otherwise FALSE
.
For best practices when using ISERROR, see Appropriate use of error functions.
This function is not supported for use in DirectQuery mode when used in calculated columns or row-level security (RLS) rules.
The following example calculates the ratio of total Internet sales to total reseller sales. The ISERROR function is used to check for errors, such as division by zero. If there is an error a blank is returned, otherwise the ratio is returned.
= IF( ISERROR(
SUM('ResellerSales_USD'[SalesAmount_USD])
/SUM('InternetSales_USD'[SalesAmount_USD])
)
, BLANK()
, SUM('ResellerSales_USD'[SalesAmount_USD])
/SUM('InternetSales_USD'[SalesAmount_USD])
)
Other functions related to ISERROR are:
2023-2024 © BI Gorilla. All rights are reserved. Information from Microsoft docs is property of Microsoft Corp. | Privacy Policy