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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.