Showing results for 
Search instead for 
Did you mean: 
ozbroomy Regular Visitor
Regular Visitor

Profit & Loss DAX Help



Below shows the Power BI Report I am working on.


I need to add some rows based calculations to the Profit & Loss - Last Month shown but keep the matrix layout.

Below shows the final result I am after. Any help writing the dax for this would be appreaciated.




Community Support Team
Community Support Team

Re: Profit & Loss DAX Help

Hi ozbroomy,

It seems that you want to refer to previous calculated result and you want to add custom subtotal in Matrix, right?

As I know, there is no custom subtotal setting for Matrix, you might need to create a column to define  a group like below, then it will show like a subtotal


By the way, if possible, could you please inform me more detailed information (such as your sample data and your expecting output)? Then I will help you more correctly.

Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Exclusive LIVE Community Event #3 – Ask Arun Anything

Exclusive LIVE Community Event #3 – Ask Arun Anything

Join us in the third Triple A event!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

January 2020 Community Highlights

January 2020 Community Highlights

Make sure you didn't miss any of the things that happened in the community in January!

Difinity Conference

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors