OpenBI Docs Buy

ISBLANK

Whether a value is blank.

Group: Logical. Compatible with DAX.

Syntax

ISBLANK ( <value> )
ParameterTypeDescription
valueValueWhat to check for a blank: a column, a measure or any expression.

Returns

Boolean. Whether the value is a blank: TRUE for a blank, FALSE for anything else.

Remarks

  • 0 and empty text are values, not blanks.
  • Adding 0 turns a blank into 0, so ISBLANK ( BLANK () + 0 ) is FALSE; multiplying keeps it blank.
  • A measure is blank where there are no rows for it, so ISBLANK ( [Liters sold] ) is TRUE for a product with no sales in the filter.
  • To treat a blank and a 0 alike, compare with =: a blank equals 0 there.

Examples

What is blank

EVALUATE
ROW (
    "Blank", ISBLANK ( BLANK () ),
    "0", ISBLANK ( 0 ),
    "Empty text", ISBLANK ( "" ),
    "Blank + 0", ISBLANK ( BLANK () + 0 ),
    "Blank * 1", ISBLANK ( BLANK () * 1 )
)
Blank0Empty textBlank + 0Blank * 1
TRUEFALSEFALSEFALSETRUE

Bonds without a price

EVALUATE
SELECTCOLUMNS ( FILTER ( Holdings, ISBLANK ( Holdings[Price] ) ), "Bond", Holdings[Bond] )
ORDER BY [Bond]
Bond
Covered 2029
Municipal 2031

BLANK, COALESCE, ISEMPTY, COUNTBLANK, IF.

Last updated · OpenBI Studio 0.3.74