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! Request now

Reply
Anonymous
Not applicable

Measure to calculate the sum of distinct count

Hi everyone,

 

I would like to show the sum of distinct count on a column chart. My data looks like this.

Pheroxiz_0-1627534497517.png

What I would like to achieve is a graph that shows the sum of the distinct count of ID for each customer. Here I can show you the summary table and the result chart. Actually, the summary table is not needed. A measure that can calculate the sum of the distinct count of ID for each customer is ok.

Pheroxiz_2-1627535059772.png

 

Pheroxiz_1-1627534874655.png

Thank you very much for your help.

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , you can try like

 

Countx(summarize(Table, Table[Month], Table[Shop], Table[Customer]),[Customer])

 

You can add or remove group column from summarize

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

View solution in original post

4 REPLIES 4
ryan_mayu
Super User
Super User

@Anonymous 

why the distinctcount for month1 shop1 is 4? could you pls provide the calculation logic?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Anonymous
Not applicable

The solution provided by @amitchandak already solved my problem. Thanks for your help anyway ^-^

amitchandak
Super User
Super User

@Anonymous , you can try like

 

Countx(summarize(Table, Table[Month], Table[Shop], Table[Customer]),[Customer])

 

You can add or remove group column from summarize

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
Anonymous
Not applicable

Thanks for your great solution!

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