>> Download the sample (Excel)
In this sample, we track Actuals against Budgeted amounts, and do this for each P&L line (rather than for just one or two P&L lines). Such a comparison is best done dynamically using a data model. Most of the work involved depends on how the Budget is set, whether quarterly, monthly, and for which lines, and then getting its granularity to match the Actuals data.
Data Inputs
Section titled “Data Inputs”For this sample, we take the following data inputs:
Chart of Accounts
Section titled “Chart of Accounts”First, a chart of accounts that shows both detailed and summary P&L lines.
![]()
Budgeted Data
Section titled “Budgeted Data”Budgeted data is set monthly, for each main P&L line.
![]()
Actuals Data
Section titled “Actuals Data”Actuals data is available in the following format:
![]()
P&L Tracking Measures
Section titled “P&L Tracking Measures”The following specific measures are shown:
- Actuals
- Budget
- Var % to Budget
Dashboard - Snippet
Section titled “Dashboard - Snippet”Unlike most of our other samples, the final output here is presented in an MS Excel spreadsheet, rather than through a BI tool such as Power BI. Power BI is strong for visuals, but less suited than MS Excel to displaying numerical data in a tabular format.
Because we need a highly customised layout, we have used Excel CUBE formulae here instead of a pivot table.
The final file can also be downloaded here, if you want to review the formulae in detail:
>> Download the sample (Excel)
![]()
As an additional check, we compare the P&L lines in the Actuals and Budget datasets with those recorded in the chart of accounts, in both directions, to see whether anything is missing (as indicated by the red crosses below).
![]()
Data Model - Snippet
Section titled “Data Model - Snippet”The final data model used is shown here:
![]()
Measures
Section titled “Measures”Actuals
Section titled “Actuals”Actuals :=SUM ( 'Actual Data'[Amount] )Budget
Section titled “Budget”Budget :=SUM ( 'Budget Data'[Value] )Var % to Budget
Section titled “Var % to Budget”Var % to Budget :=DIVIDE ( [Actuals] - [Budget], [Budget], BLANK () )Calculated Columns
Section titled “Calculated Columns”TimeKey
Section titled “TimeKey”TimeKey =YEAR ( DATEVALUE ( [Period] ) ) * 100 + MONTH ( DATEVALUE ( [Period] ) )