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
Anonymous
Not applicable

Calculate % of subtotal per category per type in a matrix table

Hi Champions 

I have this visualisation in PB:

Narsis_1-1716243422630.png

 

Want to calulate % of each column for each country  and show it under total in the matrix table. Can anyone assist me :  something like below: 

Narsis_0-1716243375993.png

Thanks

 

2 REPLIES 2
Anonymous
Not applicable

Thanks Vicky, I couldn'y figure out with your solution. I am looking for someting like this (Red Circle)

Narsis_0-1716248991117.png

 

vicky_
Super User
Super User

Are you using implicit measures? if so then there an option to show subtotals %

vicky__0-1716245638611.png

 

If you only need the value to show in the totals row, then the solution might be a bit more complicated. I would use a measure instead, and do something like:
Measure = IF(HASONEVALUE(Table[Country]), 

    // your existing calculation here

    // else DIVIDE(your calculation, CALCULATE(your calculation, removefilters(Table[Country]))
)

 

    

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.