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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Aniket_Bhande
Frequent Visitor

Calculate distinct count

Hi guys, i have data 

IMG20221229120031.jpg

Where I have

customer population.      customer name

0- 20 

22-49

50-99

>100

But we want 

Customer population with no of customer. How we will do that 

 

3 REPLIES 3
Anonymous
Not applicable

Hi @Aniket_Bhande ,

You can create a measure as below to get it and put it on your visual:

Measure = DISTINCTCOUNT ( 'Table'[CUST NAME] )

f the above one can't help you get the expected result, please provide some raw data in your table (exclude sensitive data) with Text format and your expected result with backend logic and special examples. Does the field [customer population] and [customer name] come from the same table? It is better if you can share a simplified pbix file with the expected result explanation. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

Aniket_Bhande
Frequent Visitor

I want result how many customers in each group 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.