Forum Discussion
toddpbi
8 years agoHelper II
Financial Statement IF ( SWITCH
Hello there PBI community, Recently I have been referencing an article to learn more about DAX language in an attempt to create a P&L statement within Power BI Desktop. The problem I am facing is...
Floriankx
8 years agoSolution Sage
Hello,
it is not that trivial to figure out without knowing the structure of your raw data.
Nontheless I think ALL should help you. I guess GM should be something like:
GM=CALCULATE([Rev Act]-[CoS Act],ALL(Table[SubCategories]).
For a more complicated P&L check here.
toddpbi
8 years agoHelper II
Apologies, this is the correct link to the model:
https://powerpivotpro.com/2018/01/star-schema-switch-drill-income-statement-design/
https://powerpivotpro.com/2018/01/star-schema-switch-drill-income-statement-design/