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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

Calculate a Sub-Total for specific rows in a P&L Table

I am creating a Report in Power Bi which has a P&L Table in which I am using a Table Visual where the first column is Account Description(Eg : Category 1, Category 2, Category 3, Category 4,etc), Second Column is Account Number (Eg : 1001,1002,1003,1004,etc), Third Column is Actual MTD (Dollar values for all the specific columns.), few more columns with dollar values.

I want to calculate Sub-Total for a specific Categories and add it as a row in the table.
Lets Say:
P&L View.PNG
Column 1 : Categories (which don't have Total C'wealth Funding which is the Total of the Account Number Values).

P.S Total State Funding is the Total of Other funding Category and Training income - State govt funding Category.

There are few more rows where I have to subtract two Totals and display it in same fashion.
If anyone knows how to do it please let me know and if you need more information do comment on this post.

Also to Mention Apart from Account Description all the other columns are in different table(Single Table).

Regards.




1 REPLY 1
lbendlin
Super User
Super User

Learn about ROLLUPADDISSUBTOTAL  function in DAX

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

Top Solution Authors
Top Kudoed Authors