cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

How to customize the subtotal or total formular in Matrix?

Hello, I want to caculate the subtotal or total value as required, e.g., we need to caculate the margin as below formular, and is it possible to calculate the margin of subtotal/total with the formular? Thanks.

20200221Q.png

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Memorable Member
Memorable Member

Re: How to customize the subtotal or total formular in Matrix?

Hello @WinnieT 

 

What measure you have used for calculating Margin?

 

I have used the following:

Margin =
DIVIDE (
    SUM ( 'Table'[Revenue] ) - SUM ( 'Table'[Cost] ),
    SUM ( 'Table'[Revenue] )
)

 

and it is giving me the following result:

 

Capture.PNG

Regards,
Vivek

If it helps, please mark it as a solution

Kudos would be a cherry on the top 🙂

https://www.vivran.in/

View solution in original post

2 REPLIES 2
Highlighted
Memorable Member
Memorable Member

Re: How to customize the subtotal or total formular in Matrix?

Hello @WinnieT 

 

What measure you have used for calculating Margin?

 

I have used the following:

Margin =
DIVIDE (
    SUM ( 'Table'[Revenue] ) - SUM ( 'Table'[Cost] ),
    SUM ( 'Table'[Revenue] )
)

 

and it is giving me the following result:

 

Capture.PNG

Regards,
Vivek

If it helps, please mark it as a solution

Kudos would be a cherry on the top 🙂

https://www.vivran.in/

View solution in original post

Highlighted
Helper I
Helper I

Re: How to customize the subtotal or total formular in Matrix?

@vivran22It works, thank you! Need use a measure not a column, and then works.

Helpful resources

Announcements
Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Power Platform 2020 release wave 2 plan

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors