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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.