Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
IgorGershenson
Helper II
Helper II

DAX Distinct counts measure

I am using a file where the same customer ID repeats multiple times. I need to get distinct count of customer IDs so I am using Calculate(DISTINCTCOUNT(Table[ID]),ID<>blank()) but for some reason its distinct count is too high. Has anyone experienced this? 

When I export the details and pivot to see the number of distinct counts I get a slightly smaller number. I have never seen this. Should be easy. 😞

3 REPLIES 3
Icey
Community Support
Community Support

Hi @IgorGershenson ,

If you don't mind, please share me some data sample and screenshots.

 

Best Regards,

Icey

Anonymous
Not applicable

I have seen this issue before, I would start by checking to see if there are any spaces before or after the duplicate IDs. If you need to trim the values in the column, make sure the column type is set to text.

We had trimmed the client ID before. Could it be anything else?

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.