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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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

T_Buck_1027
Frequent Visitor

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.