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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
GuestUser
Helper V
Helper V

Profit and Loss Statement

Hi All,

 

I need to create PnL statement . I have below tables

 

Table1 : Master table - Dimension

 

Rowid    Level 5           Level 6

1              Profit             Sales

2              Profit              COGS

3             Depreciation    Depraciation

4            Income            Income

 

Table 2 - Fact:

AccountId   Amount

1                 10000

2                  200

3                  300

4                  400

 

My Report should look like below : (actual % values can be ignored)

 

Level 6                                     Actual   Actual%

Sales                                          1000      10%

COGS                                          200        20%

Profit Before Depreciation         1200        10%

Depreciation                                 300        20%

Profit After Depreciation             900          20%

Income                                        400          10%

 

I need the format like above ..basically Profit before and after Depreciation are not any values

And If I create measures , I am not able to put it in rows 

 

Just to be more clear :

 

Profit Before Depreciation = Sales + COGS

Profit After Depreciation = Sales+ COGS - Depreciation

 

Pls let me know if the format is achievable ..

 

Any suggestions pls..

 

 

2 REPLIES 2
v-qiuyu-msft
Community Support
Community Support

Hi @GuestUser

 

Please create a calculated table with DAX below: 

 

Table =
UNION (
    SUMMARIZE (
        'Master table - Dimension',
        'Master table - Dimension'[Level6],
        "Actual", SUM ( 'Fact'[Amount] )
    ),
    ROW (
        "Level6", "Profit Before Depreciation",
        "Actual", CALCULATE (
            SUM ( 'Fact'[Amount] ),
            FILTER (
                'Master table - Dimension',
                'Master table - Dimension'[Level6] = "Sales"
                    || 'Master table - Dimension'[Level6] = "COGS"
            )
        )
    ),
    ROW (
        "Level6", "Profit After Depreciation",
        "Actual", CALCULATE (
            SUM ( 'Fact'[Amount] ),
            FILTER (
                'Master table - Dimension',
                'Master table - Dimension'[Level6] = "Sales"
                    || 'Master table - Dimension'[Level6] = "COGS"
            )
        )
            - CALCULATE (
                SUM ( 'Fact'[Amount] ),
                FILTER (
                    'Master table - Dimension',
                    'Master table - Dimension'[Level6] = "Depreciation"
                )
            )
    )
)

 

q1.PNG

 

Best Regards,
Qiuyun Yu 

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

Hi,

 

i need the reports to interact with Date as well as other dimension , so can this solution still work?

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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