OpenBI Docs Buy

DISTINCTCOUNTNOBLANK

How many different values a column holds, leaving blanks out.

Group: Aggregation. Compatible with DAX.

Syntax

DISTINCTCOUNTNOBLANK ( <column> )
ParameterTypeDescription
columnColumnThe column whose different values are counted.

Returns

Whole number. How many different values the column has, not counting a blank.

Remarks

  • It is DISTINCTCOUNT without the blank: the two differ by one exactly when the column has a blank cell in the filter context.
  • When no value is left, the result is BLANK.

Examples

Different prices

EVALUATE
ROW (
    "With the blank", DISTINCTCOUNT ( Holdings[Price] ),
    "Without it", DISTINCTCOUNTNOBLANK ( Holdings[Price] )
)
With the blankWithout it
43

DISTINCTCOUNT, COUNTBLANK, VALUES.

Last updated · OpenBI Studio 0.3.78