Table of contents
TOC
Collapse the table of content
Expand the table of content

ISERROR Function (DAX)

Owen Duncan|Last Updated: 4/19/2018

Checks whether a value is an error, and returns TRUE or FALSE.

Syntax

ISERROR(<value>)  

Parameters

TermDefinition
valueThe value you want to test.

Return Value

A Boolean value of TRUE if the value is an error; otherwise FALSE.

Example

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])  
    )  

See Also

Information Functions (DAX)
IFERROR Function (DAX)
IF Function (DAX)

© 2018 Microsoft