Skip to content

Finance - Sales Tracking – Quarterly to Daily Budget

>> Download the sample (Excel)

In this sample, we track actual sales against budgeted sales. This is relatively easy to do. The only complication is that the budget has been set quarterly, yet we also want to track differences at a daily, weekly or monthly level. To do this, we allocate each quarter’s budget to each month, week and day, taking into account the number of working days in each selected time period.

For this sample, we take the following data inputs:

As stated earlier, this has been set each quarter, rather than each week or month.

This is provided in the following format, with sales recorded on the day to which they relate.

We calculate and show the following final measures:

  1. Actuals
  2. Budget
  3. Variance %
  4. QTD Actuals
  5. QTD Budget
  6. QTD Variance %
  7. YTD Actuals
  8. YTD Budget
  9. YTD Variance %

Unlike most of our other samples, the final output here is presented in Excel itself, rather than through a Power BI dashboard, which is great for visuals but not as strong with tables. For pivot tables alone, it is a matter of preference.

The final file can also be downloaded here, if you want to review the formulae in detail:

>> Download the sample (Excel)

The final data model used is shown here:

IsBudgetValid :=
NOT (
ISFILTERED ( 'Date'[Date] ) || ISFILTERED ( 'Date'[Month] )
|| ISFILTERED ( 'Date'[Week] )
|| ISFILTERED ( 'Date'[Day] )
)
Budget :=
IF ( [IsBudgetValid], [BudgetCalc], [AllocatedBudget] )
BudgetCalc :=
CALCULATE (
SUM ( Quarterly_Budget[BudgetAmount] ),
FILTER (
ALL ( Quarterly_Budget[YearQuarter] ),
CONTAINS (
VALUES ( 'Date'[YearQuarter] ),
'Date'[YearQuarter], Quarterly_Budget[YearQuarter]
)
),
FILTER (
ALL ( Quarterly_Budget[Item] ),
CONTAINS ( VALUES ( Items[Item] ), Items[Item], Quarterly_Budget[Item] )
)
)
AllocatedBudget :=
SUMX (
KEEPFILTERS (
CROSSJOIN ( VALUES ( 'Date'[YearQuarter] ), VALUES ( Items[Item] ) )
),
[AllocationFactor] * [BudgetCalc]
)
AllocationFactor :=
[WorkingDays]
/ CALCULATE (
[WorkingDays],
ALLEXCEPT ( Items, Items[Item] ),
ALL ( 'Date' ),
VALUES ( 'Date'[YearQuarter] )
)
WorkingDays :=
SUMX (
VALUES ( 'Date'[Year] ),
CALCULATE ( COUNTROWS ( 'Date' ), 'Date'[WorkingDay] = TRUE )
)
Actuals :=
SUM ( Actuals[ActualAmount] )
Var% :=
DIVIDE ( [Actuals] - [Budget], [Budget] )
YTDBudget :=
TOTALYTD ( [Budget], 'Date'[Date] )
YTDActuals :=
TOTALYTD ( [Actuals], 'Date'[Date] )
YTDVar% :=
DIVIDE ( [YTDActuals] - [YTDBudget], [YTDBudget] )
QTDBudget :=
IF ( ISFILTERED ( [Date] ), TOTALQTD ( [Budget], 'Date'[Date] ), [Budget] )
QTDActuals :=
IF ( ISFILTERED ( [Date] ), TOTALQTD ( [Actuals], 'Date'[Date] ), [Actuals] )
QTDVar% :=
DIVIDE ( [QTDActuals] - [QTDBudget], [QTDBudget] )
YearQuarter =
Quarterly_Budget[Year] & Quarterly_Budget[Quarter]
Year =
YEAR ( 'Date'[Date] )
Quarter =
"Q" & FORMAT ( 'Date'[Date], "Q" )
YearQuarter =
'Date'[Year] & 'Date'[Quarter]
MonthNumber =
MONTH ( 'Date'[Date] )
Month =
FORMAT ( 'Date'[Date], "mmmm" )
Week =
WEEKNUM ( 'Date'[Date] )
Day =
DAY ( 'Date'[Date] )
WorkingDay =
WEEKDAY ( [Date], 2 ) < 6