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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Subtotals using DAX

Hello all!

 

I am rather new to Power BI Desktop, so thank you in advance for your insight as it is greatly appreciated.

 

We are currently trying to replicate a P&L statement. 

 

What I would like to do is calculate subtotals within the matrix by account and department.

 

Attached is an example of what/where I am trying to get a subtotal.

 

Thank you again for the insight. Much appreciated!

Want to add subtotals where the blue lines are, capturing only the data above each line.Want to add subtotals where the blue lines are, capturing only the data above each line.ExampleExample

 

1 ACCEPTED SOLUTION
Cmcmahan
Resident Rockstar
Resident Rockstar

In the formatting options for the matrix, you should be able to turn Row subtotals and Per row level subtotals to ON.  Then if your data is grouped properly, you should be able to get the subtotals you want.  You may need a new value in your table to group accounts so that all the 4XXXX are grouped together

View solution in original post

1 REPLY 1
Cmcmahan
Resident Rockstar
Resident Rockstar

In the formatting options for the matrix, you should be able to turn Row subtotals and Per row level subtotals to ON.  Then if your data is grouped properly, you should be able to get the subtotals you want.  You may need a new value in your table to group accounts so that all the 4XXXX are grouped together

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.

Top Solution Authors