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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
slobodan
New Member

Count unique names

Hello,

 

I think I have a trouble understanding how COUNTDISTINCT works. When I use this formula in measure to get unique values of names from one column, this formula takes into account not only data from this column but from others as well. 

 

So, for example, instead to get 30 unique names, I get around 50. I know I get 50 because these names are related to data in different columns. But I want Power BI to see only this one column when executing calculation. 

 

Simple explained: I want to get the number (count) of unique names that appear in one specific column (Full name). 

 

Thanks. 

3 REPLIES 3
V-lianl-msft
Community Support
Community Support

Hi @slobodan ,

 

Calculated measure is not treated the same as any other table column. Unlike a calculated column, measures are evaluated on the fly with every change in context.

We don't know your scenario and the expected results. It's difficult to give an accurate answer just by imagination.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523 


Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

aj1973
Community Champion
Community Champion

Hi @slobodan 

Add a new column where you CONCATENATE column NAMES to column SURNAMES and you will have a FULL NAME column. Then use DISTINCTCOUNT on the new column FULL NAME.

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

amitchandak
Super User
Super User

@slobodan , if you distinctcount , then total or the card you have has value of unique names

 

but if you group it by say city, then city will show distinct name in city and but grand total will be distinct name overall

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.

Top Solution Authors