OpenBI Docs Buy

ISCURRENCY

Whether a value is a fixed decimal number (Currency).

Group: Information. Compatible with DAX.

Syntax

ISCURRENCY ( <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

  • Fixed decimal numbers hold four digits after the decimal point exactly. CURRENCY makes one, and a column of the fixed decimal type holds them.
  • A decimal number (Double) is not one, even when it is a price such as 2.50; nor is a whole number.
  • ISDECIMAL is the same test.

Examples

Fixed decimal or not

EVALUATE
ROW (
    "CURRENCY ( 2.5 )", ISCURRENCY ( CURRENCY ( 2.5 ) ),
    "2.5", ISCURRENCY ( 2.5 ),
    "7", ISCURRENCY ( 7 ),
    "CURRENCY ( 2.5 ) + 1", ISCURRENCY ( CURRENCY ( 2.5 ) + 1 )
)
CURRENCY ( 2.5 )2.57CURRENCY ( 2.5 ) + 1
TRUEFALSEFALSETRUE

ISDECIMAL, CURRENCY, ISDOUBLE, ISNUMERIC.

Last updated · OpenBI Studio 0.3.74