Skip to content

Latest commit

 

History

History
57 lines (38 loc) · 1.36 KB

distinctcountnoblank-function-dax.md

File metadata and controls

57 lines (38 loc) · 1.36 KB
description title
Learn more about: DISTINCTCOUNTNOBLANK
DISTINCTCOUNTNOBLANK function (DAX) | Microsoft Docs

DISTINCTCOUNTNOBLANK

[!INCLUDEapplies-to-measures-columns-tables-visual-calculations]

Counts the number of distinct values in a column.

Syntax

DISTINCTCOUNTNOBLANK (<column>)  

Parameters

Term Description
column The column that contains the values to be counted

Return value

The number of distinct values in column.

Remarks

Example

The following example shows how to count the number of distinct sales orders in the column ResellerSales_USD[SalesOrderNumber].

= DISTINCTCOUNT(ResellerSales_USD[SalesOrderNumber])  

DAX query

EVALUATE
    ROW(
        "DistinctCountNoBlank", DISTINCTCOUNTNOBLANK(DimProduct[EndDate]),
        "DistinctCount", DISTINCTCOUNT(DimProduct[EndDate])
    )
[DistinctCountNoBlank] [DistinctCount]
2 3

Related content

DISTINCTCOUNT