OpenBI Docs Buy

ISNUMBER

Whether a value is a number; a date counts as one.

Group: Information. Compatible with DAX.

Syntax

ISNUMBER ( <value> )
ParameterTypeDescription
valueValueWhat is tested: a constant, a column in a row context, a measure or any expression.

Returns

Boolean. TRUE when the value is a number of any kind, a date included; FALSE otherwise.

Remarks

  • A date counts as a number here (it is one, underneath: days since 30 December 1899). To leave dates out, use ISNUMERIC; to find dates, ISDATETIME.
  • Text is not a number, even when it holds digits: ISNUMBER ( "42" ) is FALSE.
  • A blank is not a number, and neither are TRUE and FALSE.

Examples

Values of several types

EVALUATE
ROW (
    "42", ISNUMBER ( 42 ),
    "2.5", ISNUMBER ( 2.5 ),
    "A date", ISNUMBER ( DATE ( 2026, 11, 2 ) ),
    "Text 42", ISNUMBER ( "42" ),
    "Blank", ISNUMBER ( BLANK () ),
    "TRUE ()", ISNUMBER ( TRUE () )
)
422.5A dateText 42BlankTRUE ()
TRUETRUETRUEFALSEFALSEFALSE

Which bonds have a price

Two holdings have no quoted price: blank is not a number.

EVALUATE
SELECTCOLUMNS (
    Holdings,
    "Bond", Holdings[Bond],
    "Has a price", ISNUMBER ( Holdings[Price] )
)
BondHas a price
Government 2028TRUE
Government 2033TRUE
Municipal 2031FALSE
Covered 2029FALSE
Corporate 2030TRUE

ISNUMERIC, ISDATETIME, ISTEXT, ISBLANK, VALUE.

Last updated · OpenBI Studio 0.3.74