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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
UntamanEi
Frequent Visitor

Total sum for Customer is not equal Distinctcount

Hi, 

I would like to calculate the summation of the Distinctcount Customer that shows a unique customer but I would like summation value.

not equal.png

This is my DAX.

 

_Count Customer = SUMX(ALLSELECTED(Sheet1[Customer]), CALCULATE(DISTINCTCOUNT(Sheet1[Customer])))

 

This is the Data Table.

DateTransactionCustomer
9/2/2020MM01A
9/2/2020MM02C
9/20/2020MM03B
9/22/2020MM04A
10/1/2020MM05B
10/3/2020MM06A
10/5/2020MM07B

 

Best Regards,

1 ACCEPTED SOLUTION
AlB
Community Champion
Community Champion

Hi @UntamanEi 

Using your current measure, and if you are going to use it with months (DateT[Month]) on the row of the visual as shown:

 

_Count Customer_TOT =
SUMX( DISTINCT(DateT[Month]), [_Count Customer])

 

Please mark the question solved when done and consider giving kudos if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers 

SU18_powerbi_badge

View solution in original post

1 REPLY 1
AlB
Community Champion
Community Champion

Hi @UntamanEi 

Using your current measure, and if you are going to use it with months (DateT[Month]) on the row of the visual as shown:

 

_Count Customer_TOT =
SUMX( DISTINCT(DateT[Month]), [_Count Customer])

 

Please mark the question solved when done and consider giving kudos if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers 

SU18_powerbi_badge

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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