Context
I have prepared a financial report which comprises the Profit or Loss Statement (“P/L”) for my company (data has been replaced with dummy data for confidentiality purposes).
This financial report was prepared with the methodologies I learned from the Financial Reporting with Power BI course by Sam McKay.
The P/L is prepared in a matrix where I have a template in Excel to determine P/L row items in a sequential order. The numbers are then reflected using DAX.
There are 4 filters, i.e. Dates (Year and Month), Country, Customer Channel (Online or Offline), Data Type (Actual or Forecast).
Problem
Problem #1: My data consists of Actuals (historical financial data) and Forecast (full year forecast which are prepared every quarter, hence there will be 4 sets of Forecast data prepared every quarter, i.e. Forecast Q1, Forecast Q2, Forecast Q3, Forecast Q4.
In my DAX, I currently manually write this filter, i.e. whether I want the calculation to be using Actual data or Forecast data. However, this becomes tedious when I have to update the Forecast, e.g. from Forecast 1 to Forecast 2.
The reason why I have to do this is because in my P/L report page, I have multiple matrix tables to show multiple Data Types (Actual, Forecast 1, Forecast 2 etc). Otherwise, if I were to put the Data Type filter in the page, all my data will change when I click the filter, e.g. if I click Forecast Q1, my Forecast column in my matrix table will also become Actual data.
How do I make it such that I can reflect these with ease in my measure without having to manually change the Forecast data type?
You may refer to measures in the P/L Summary Measure group.
Problem #2: In the P/L Summary Measure group, I have a measure called R/O. In this calculation, it is a division as follows (Month of Apr as example):
((Latest Forecast - Actual YTD) / months remaining in the year ) / (Actual YTD) / current months)
= ((Latest full year forecast data - Actual Jan - Apr data) / 8 ) / Actual Jan - Apr data / 4)
After every month end, I have to manually update the numbers 8 and 4. For example, for May’s financial report, I will have to edit 8 to 7 and 4 to 5 in my measure.
How do I make it such that the manual keying in can be “automated” in my measure?
Financial Report.pbix (271.4 KB)
Financial Report.xlsx (237.3 KB)