Skip to content

Allocation of Annual Budget (by Monthly weightings given). Comparison with Total Actual Sales - 2

>> Download the sample (Power BI)

This sample shows how:

(i) Actual Total Sales compare to
(ii) A pre-determined budget (where the budget has been allocated monthly using a monthly percentage weighting)

Actuals vs Budget w/Weightings 2 =
[Total Sales] - [Budget Allocation w/Weightings 2]
Budget Allocation w/Weightings 2 =
VAR SeasonalityAllocation =
CALCULATE (
AVERAGE ( 'Budget Weightings'[Monthly Weighting] ),
TREATAS ( VALUES ( Calendar_Table[Month] ), 'Budget Weightings'[Month No] )
)
VAR TotalBudget =
LOOKUPVALUE ( Budget_Table[Annual Budget], Budget_Table[Year], [Selected Year] )
RETURN
IF (
HASONEVALUE ( Calendar_Table[Month & Year] ),
TotalBudget * SeasonalityAllocation,
TotalBudget
)
Selected Year =
VAR selectedyear =
SELECTEDVALUE ( Calendar_Table[Year] )
RETURN
IF ( ISBLANK ( selectedyear ), "Multiple Years", selectedyear )
Total Sales =
SUMX ( Sales_Table, Sales_Table[Unit Price] * Sales_Table[Quantity] )
Calendar_Table =
GENERATE (
CALENDAR ( DATE ( 2017, 1, 1 ), DATE ( 2019, 12, 31 ) ),
VAR currentDay = [Date]
VAR Day =
DAY ( currentDay )
VAR Month =
MONTH ( currentDay )
VAR Year =
YEAR ( currentDay )
RETURN
ROW ( "Day", day, "Month", month, "Year", year )
)