DAX Function Guide

APPROXIMATEDISTINCTCOUNT Function (DAX)
Empty image or helper icon

Sam McKay

CEO & Founder

How does the APPROXIMATEDISTINCTCOUNT Function (DAX) work?
The APPROXIMATEDISTINCTCOUNT function (DAX) counts the approximate number of distinct values within a column.
APPROXIMATEDISTINCTCOUNT Function (DAX) Formula Syntax

APPROXIMATEDISTINCTCOUNT(
     <columnName>
)

How do you use the APPROXIMATEDISTINCTCOUNT Function (DAX)?

When compared with DISTINCTCOUNT, this function can query a large amount of data with better performance and with a slight deviation from the exact result.

Related Blog Posts

Loading

Considerations when using the APPROXIMATEDISTINCTCOUNT Function (DAX)?

The only argument to this function is a column that contains the values that need to be counted. This cannot be an expression. 

You can use columns containing any type of data. When the function finds out that there are no rows to count, it will return BLANK; otherwise it will return the count of distinct values. 

Related Video Tutorials

Loading

Formula examples using the APPROXIMATEDISTINCTCOUNT Function (DAX)
Related Courses

Loading