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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
guyclewlowi2
Frequent Visitor

Accumulating subtotals

Is it possible to add accumulating sub totals into a matrix table in Power BI. So for example Income, cost of sales and then a subtotal called gross profit, then overheads and another subtotal called net profit. The net profit would be a calculation of gross profit + overheads and not just total the overheads

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @guyclewlowi2,

 

>>So for example Income, cost of sales and then a subtotal called gross profit, then overheads and another subtotal called net profit. The net profit would be a calculation of gross profit + overheads and not just total the overheads

Power bi not support these feature, you should write measures to calculate for these calculations and drag them to values field.

 

Regards,

Xiaoxin Sheng

View solution in original post

9 REPLIES 9
Ashish_Mathur
Super User
Super User

Hi,

 

This can be done in Excel using CUBE functions.


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

These each would be written as separate measures(i.e. [Income], [Cost of Sales], and [Gross Profit]), then in your matrix you would use the new "show measures on rows" formatting feature to get the layout you're describing.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Anonymous
Not applicable

Hi @guyclewlowi2,

 

For your scenario, I think you can keep the original table structure to build a sample file with some fake data , then share it here.

 

Regards,

Xiaoxin Sheng

Please see below a link to the power BI example table and the example data

 

Sample BI table

 

Sample transactions

Anonymous
Not applicable

Hi @guyclewlowi2,

 

>>So for example Income, cost of sales and then a subtotal called gross profit, then overheads and another subtotal called net profit. The net profit would be a calculation of gross profit + overheads and not just total the overheads

Power bi not support these feature, you should write measures to calculate for these calculations and drag them to values field.

 

Regards,

Xiaoxin Sheng

Anonymous
Not applicable

Can you provide some sample data so that we can have better understanding towards result formulation?

 

Regards,

Hemant

Hi Hemant,

 

Thanks for replying to the post, because its company financial data I cant share but it is typical nominal ledger transactions (in this case from SAGE 50)

Anonymous
Not applicable

You can obviously mask the data & provide us for our understanding towards its structure & the result you want to replicate out of it.

Regards

Or use https://www.mockaroo.com/ to make some fake sample data that has the same structure.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.