OpenBI Docs Buy

ISDECIMAL

Whether a value is a fixed decimal number (Currency); the same test as ISCURRENCY.

Group: Information. Compatible with DAX.

Syntax

ISDECIMAL ( <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 fixed decimal number (the Currency type), FALSE otherwise.

Remarks

  • Decimal here is DAX's fixed decimal number, the Currency type, not the decimal number type (Double): ISDECIMAL ( 2.5 ) is FALSE. Use ISDOUBLE for those.
  • ISCURRENCY is the same test.

Examples

Fixed decimal against decimal

EVALUATE
ROW (
    "ISDECIMAL ( 2.5 )", ISDECIMAL ( 2.5 ),
    "ISDECIMAL ( CURRENCY ( 2.5 ) )", ISDECIMAL ( CURRENCY ( 2.5 ) ),
    "ISDOUBLE ( 2.5 )", ISDOUBLE ( 2.5 )
)
ISDECIMAL ( 2.5 )ISDECIMAL ( CURRENCY ( 2.5 ) )ISDOUBLE ( 2.5 )
FALSETRUETRUE

ISCURRENCY, ISDOUBLE, CURRENCY, ISNUMERIC.

Last updated · OpenBI Studio 0.3.74