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
DRing
Helper V
Helper V

Help with DAX for SUM of Distinct values

I have data like below in a table and need a measure that will show me the sum of the distinct Customer_Count values. I'll have a slicer for Brand so that when all brands are selected, the measure should return 2017 (500+675+470+372). If one of the Brands is selected, for example 'Solutions', the measure would return 675.
 
Seems like it should be easy, but I've not been able to figure out the DAX for it.
 
Customer_IDBrandCustomer_Count
1Premier500
2Solutions675
3Central470
4Mighty372
5Premier500
6Solutions675
7Central470
8Mighty372
9Premier500
10Solutions675
1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User

2 REPLIES 2
Ahmedx
Super User
Super User

pls try this

 

@Ahmedx Worked perfectly. Thanks!

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.