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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Krcmajster
Helper IV
Helper IV

Calculate Sum of Sum of percentages

I know the title is stupid but it's the only way I could explain it.

I have on table with percentages and product:

ID Perc
1p120%
1p220%
2p240%
3p150%

 

And another with Amounts

ID 
110,000
220,000
35,000

 

I need a measure (can't use calculated columns) to calculate percentages of amounts by each product and then sum them up.
So If I use slicer and select p1 i'll get 20 % of 10,000 and 50% of 5000, which would be 4500. If I select p2 I will have 20% of 10,000 and 40% of 20,000 so 2,000+8,000=10,000

1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

@Krcmajster 

Give this a try.  Assuming the tables are linked on the ID field.

 

Amount by PCT = 
SUMX('Table','Table'[Perc] * RELATED(Amounts[Amount]))

jdbuchanan71_0-1633705262907.png

jdbuchanan71_1-1633705277404.png

 

 

View solution in original post

1 REPLY 1
jdbuchanan71
Super User
Super User

@Krcmajster 

Give this a try.  Assuming the tables are linked on the ID field.

 

Amount by PCT = 
SUMX('Table','Table'[Perc] * RELATED(Amounts[Amount]))

jdbuchanan71_0-1633705262907.png

jdbuchanan71_1-1633705277404.png

 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.