ISNUMBER
Applies to: Calculated column Calculated table Measure Visual calculation
Checks whether a value is a number, and returns TRUE
or FALSE
.
Syntax
ISNUMBER(<value>)
Parameters
Term | Definition |
---|---|
value |
The value you want to test. |
Return value
TRUE
if the value is numeric; otherwise FALSE
.
Remarks
This function is not supported for use in DirectQuery mode when used in calculated columns or row-level security (RLS) rules.
Example
The following three samples show the behavior of ISNUMBER.
//RETURNS: Is number
= IF(ISNUMBER(0), "Is number", "Is Not number")
//RETURNS: Is number
= IF(ISNUMBER(3.1E-1),"Is number", "Is Not number")
//RETURNS: Is Not number
= IF(ISNUMBER("123"), "Is number", "Is Not number")