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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
j_w
Helper IV
Helper IV

How to apply custom measure in matrix for a values column in the subtotal row

For example, the subtotal Margin % in the subtotal row should be calculated as 26.58 / 60.48 * 100% = 43.95%, instead of summing the individual Margin % values.

j_w_0-1755649015318.png

 

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

If $ margin and Total revenue are measures (and if they are not, then you should ensure that they are measures), then this simple measure should work for all rows

Margin (%) = divide([$ margin],[Total sales])

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

1 REPLY 1
Ashish_Mathur
Super User
Super User

Hi,

If $ margin and Total revenue are measures (and if they are not, then you should ensure that they are measures), then this simple measure should work for all rows

Margin (%) = divide([$ margin],[Total sales])

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.