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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Matthijs1234566
Frequent Visitor

DAX subtotals P&L reporting Direct Query

Hello everyone,

 

I am making a P&L in Power BI with a direct query connection with SAP data and a hierarchy from SAP. The situation is that the SAP hierarchy could not be changed. I want to format the hierarchy with some small changes. How do i fix this at the best way? Is it possible with DAX?

 

In the attachment i have provided a p&L file and some example data.

 

Revenue is a positive number and costs are negative. This two minus each other is the subtotal of the EBITDA.

 

What i want to create is the following:
GL_account_level 3                   Revenue
Gl_account_level 4                    Revenue                Revenue cars
GL_account_level 3                   Costs

Gl_Account_level 4                   Cost                         Loan costs
EBITDA (subtotal)
GL_account_level 3                   Depreciation
Gl_account_level 4                     Depreciation          Depreciation cars
EBIT (subtotal)
GL_account_level 3                   Interest
(Regular exploitationresult subtotal)

GL_account_level_3                   Extraordinary income and charge

Subtotal result before tax

 

The current situation is the following:
EBIT (level 1)

             EBITDA (level 2)

                            Revenue (level 3)
                                                                Revenue cars (level 4)
                             Costs (level 3)
                                                                Loan costs (level 4)
             Interest and depreciation (level 2)
Extraordinary income and charge (level 1)
              Extraordinary income and charge (level 2)
                              Extraordinary income and charge (level 3)
Total Power BI result before tax


I am searching very long for a good way how to fix this, so if anyone can help me i'm very happy:)

2 REPLIES 2
v-yalanwu-msft
Community Support
Community Support

Hi, @Matthijs1234566 ;

Is this the result you want to present? I don't quite understand the Gl_Account_level 4 in your description.

vyalanwumsft_0-1650510773084.png

 


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Matthijs1234566
Frequent Visitor

https://we.tl/t-UYtrNxpLlC with a wetransfer link to the files

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.