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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Babycakes
Helper II
Helper II

Profit and Loss

Morning, I am creating a profit and loss.

 

I have Indexed or categorised my amounts into income and expenses etc.

 

However how do I get subtotals to add or subtract.

 

Disclaimer - new to BI

Eg Sum index 1 plus sum index 2

6 REPLIES 6
Babycakes
Helper II
Helper II

Thank you 

 

I have attached.

I am trying to acheive the sub totals to appear for example Total Governtment Funding is B16 plus B15 in my template uploaded to Power bi but the matrix is not allowing the measure to add.

Total Government Funding B17 B16+B15
   
Total Income (B2:B12)+B17

 

Line ItemLine Item DescriptionLevelHighlightAccount Code
1IncomeIncome1 
2A incomeTotal Income0 
3B IncomeTotal Income0 
4C IncomeTotal Income0 
5D IncomeTotal Income0 
6E IncomeTotal Income0 
7F IncomeTotal Income0 
8G IncomeTotal Income0 
9H IncomeTotal Income0 
10I IncomeTotal Income0 
11J IncomeTotal Income0 
12 Total Income0 
13    
14Government FundingGovernment Funding1 
15A Govt Total Government Funding0 
16B GovtTotal Government Funding0 
17Total Government FundingTotal Income1 
18    
19Total IncomeTotal Income1 
20    

Hi @Babycakes,

 

Out of the box, you cannot have the same format as what you have in your sample result. However, you can create hierarchy so your data shows the subtotal as well as the grand total similar to below

danextian_0-1663217123315.png

If you want an output that is similar to below, I'm attaching  a sample pbix to help you get started. This will require some advanced DAX skills.

danextian_1-1663217465631.png

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

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


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
v-zhangti
Community Support
Community Support

Hi, @Babycakes 

 

Can you provide sample data for testing? Sensitive information can be removed in advance. What kind of expected results do you expect? You can also show it with pictures. I look forward to your response.

 

Best Regards,

Community Support Team _Charlotte

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

danextian
Super User
Super User

Hi @Babycakes ,

 

Please share a sample data and your expected result.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/2754536#M9587...





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

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


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

See above

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.