Skip to content

Finance - P&L Tracking – Cube Formulae

>> 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.

For this sample, we take the following data inputs:

First, a chart of accounts that shows both detailed and summary P&L lines.

Budgeted data is set monthly, for each main P&L line.

Actuals data is available in the following format:

The following specific measures are shown:

  1. Actuals
  2. Budget
  3. Var % to Budget

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).

The final data model used is shown here:

Actuals :=
SUM ( 'Actual Data'[Amount] )
Budget :=
SUM ( 'Budget Data'[Value] )
Var % to Budget :=
DIVIDE ( [Actuals] - [Budget], [Budget], BLANK () )
TimeKey =
YEAR ( DATEVALUE ( [Period] ) ) * 100
+ MONTH ( DATEVALUE ( [Period] ) )