OpenBI Docs Buy

ISLOGICAL

TRUE for a Boolean value, FALSE for anything else.

Group: Information. Compatible with DAX.

Syntax

ISLOGICAL ( <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 TRUE or FALSE, FALSE for numbers, text, dates and blanks.

Remarks

  • The value's type decides, not what it reads like: the number 1 and the text "TRUE" are not logical values.
  • A blank is not a logical value either: FALSE.
  • ISBOOLEAN is the same test.

Examples

Values of several types

EVALUATE
ROW (
    "TRUE ()", ISLOGICAL ( TRUE () ),
    "3 > 2", ISLOGICAL ( 3 > 2 ),
    "1", ISLOGICAL ( 1 ),
    "Text TRUE", ISLOGICAL ( "TRUE" ),
    "Blank", ISLOGICAL ( BLANK () )
)
TRUE ()3 > 21Text TRUEBlank
TRUETRUEFALSEFALSEFALSE

ISBOOLEAN, ISTEXT, ISNUMBER, ISBLANK, TRUE.

Last updated · OpenBI Studio 0.3.74