Hello All,
I need assistance related to the financial reporting w/power bi course. I will be grateful when anyone has time to check the PBix file I attached.
I am having difficulty with the Selected Year Actuals. When I started the first part of the formula for the totals in the income statement, it worked well. (See screenshot 1 and 1.2)
And then, when I try to get the remaining details of the income statement by adding the CALCULATE formulae, there are no changes that are taking place… (see screenshot 2).
The entire income statement detail should appear as Sam Mckay instructed on the video tutorial, but I don’t know where I get things wrong.
Financial Reportingn Solution.pbix (646.1 KB)
Screanshot 1
Screanshot 1.2
Selected Year Actuals =
VAR CurrentItem=SELECTEDVALUE(‘Profit and Loss Template’[Items (Normalized)])
RETURN
SWITCH(TRUE(),
CurrentItem=“Total Revenues”,DIVIDE([Revenue],1000,0),
CurrentItem=“Total COGS”,DIVIDE([COGS],1000,0),
CurrentItem=“Total Gross Profit”,DIVIDE([Gross Profit],1000,0),
CurrentItem=“Gross Profit %”,FORMAT([Gross Profit Margin],“0.00%”),
CurrentItem=“Total Other Expenses”,DIVIDE([Other Expenses],1000,0),
CurrentItem=“Total Net Profit”,DIVIDE([Net Profit],1000,0),
CurrentItem=“Net Profit %”,FORMAT([Net Profit Margin],“0.00%”,
BLANK()))
screanshot 2
Selected Year Actuals =
VAR CurrentItem=SELECTEDVALUE(‘Profit and Loss Template’[Items (Normalized)])
RETURN
SWITCH(TRUE(),
CurrentItem=“Total Revenues”,DIVIDE([Revenue],1000,0),
CurrentItem=“Total COGS”,DIVIDE([COGS],1000,0),
CurrentItem=“Total Gross Profit”,DIVIDE([Gross Profit],1000,0),
CurrentItem=“Gross Profit %”,FORMAT([Gross Profit Margin],“0.00%”),
CurrentItem=“Total Other Expenses”,DIVIDE([Other Expenses],1000,0),
CurrentItem=“Total Net Profit”,DIVIDE([Net Profit],1000,0),
CurrentItem=“Net Profit %”,FORMAT([Net Profit Margin],“0.00%”,
CALCULATE([Actual (,000)],FILTER(‘Income Statement Data’,‘Income Statement Data’[Items]=CurrentItem))))