DISTINCTCOUNTNOBLANK Counts the number of distinct values in a column.
Syntax
DISTINCTCOUNTNOBLANK (column)
Parameters
Return Value
The number of distinct values in column.
Reference Data
https://docs.microsoft.com/en-us/dax/dax-function-reference