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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
byr10112
Employee
Employee

SUMMARIZE/SUMX Measure Not Summing Duplicate Values for Different ID Entries

I have the following measure:

 

SUMX(SUMMARIZE(Master, Master[Total Revenue]), Master[Total Revenue])

 

I need to use this measure because my table has some duplicate revenue numbers. For example:

IDNameBill DateBilled ByTotal Revenue
1001ABC INC2022-09-01John120000
1001ABC INC2022-09-01Jack120000

 

The total revenue for the account 1001 is 120000, thus I cannot use a simple SUM measure.

 

However, what I have noticed is that when I have two different entries for two different accounts with the same Total Revenue, the Totals in my Matrix doesn't sum both. For example:

IDNameBill DateBilled ByTotal Revenue
1001ABC INC2022-09-01John120000
1001ABC INC2022-09-01Jack120000
1002XYZ2022-10-05James8000
1003ABB2022-11-01Mark120000

 

This is what the matrix shows:

 

IDRevenue
1001120000
10028000
1003120000
Total128000

 

However, in reality, the matrix show show this:

IDRevenue
1001120000
10028000
1003120000
Total248000

 

Is there a way to update the measure to still only sum the unique total revenue per ID, but in total include the same revenue amount from different IDs?

1 ACCEPTED SOLUTION
v-yinliw-msft
Community Support
Community Support

Hi @byr10112 ,

 

You can try this method:

New a measure:

SUM = SUMX(SUMMARIZE('Table','Table'[ID],'Table'[Total Revenue]),[Total Revenue])

The result is:

vyinliwmsft_0-1668649055027.png

 

 

Hope this helps you. Here is my PBIX file.

 

 

 

Best Regards,

Community Support Team _Yinliw

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

 

View solution in original post

1 REPLY 1
v-yinliw-msft
Community Support
Community Support

Hi @byr10112 ,

 

You can try this method:

New a measure:

SUM = SUMX(SUMMARIZE('Table','Table'[ID],'Table'[Total Revenue]),[Total Revenue])

The result is:

vyinliwmsft_0-1668649055027.png

 

 

Hope this helps you. Here is my PBIX file.

 

 

 

Best Regards,

Community Support Team _Yinliw

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

 

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.