Forum Discussion
GuestUser
6 years agoHelper 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 ...
v-qiuyu-msft
6 years agoCommunity 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"
)
)
)
)
Best Regards,
Qiuyun Yu
GuestUser
6 years agoHelper V
Hi,
i need the reports to interact with Date as well as other dimension , so can this solution still work?