Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext 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
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..
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"
)
)
)
)
Best Regards,
Qiuyun Yu
Hi,
i need the reports to interact with Date as well as other dimension , so can this solution still work?
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 1 |