Cheat Sheets/Power BI/DISTINCTCOUNT
DAX function

DISTINCTCOUNTDAX function reference

Count distinct values.

Syntax

dax
DISTINCTCOUNT(<column>)

Examples

dax
DISTINCTCOUNT(Sales[CustomerID])
A number
dax
CALCULATE(DISTINCTCOUNT(Sales[CustomerID]), Sales[Year] = 2026)
Distinct customers in 2026
dax
DIVIDE(DISTINCTCOUNT(Sales[CustomerID]), COUNTROWS(Sales))
Orders per distinct customer

Common mistakes & gotchas

Related DAX functions

From Aggregations

Used in these tutorials

← Back to the Power BI (DAX) cheat sheet