>> 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)
Dashboard - Snippet
Section titled “Dashboard - Snippet”
Data Model - Snippet
Section titled “Data Model - Snippet”
Measures - Sales, Budget, & Calendar Time
Section titled “Measures - Sales, Budget, & Calendar Time”Actuals vs Budget w/Weightings 2
Section titled “Actuals vs Budget w/Weightings 2”Actuals vs Budget w/Weightings 2 =[Total Sales] - [Budget Allocation w/Weightings 2]Budget Allocation w/Weightings 2
Section titled “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
Section titled “Selected Year”Selected Year =VAR selectedyear = SELECTEDVALUE ( Calendar_Table[Year] )RETURN IF ( ISBLANK ( selectedyear ), "Multiple Years", selectedyear )Total Sales
Section titled “Total Sales”Total Sales =SUMX ( Sales_Table, Sales_Table[Unit Price] * Sales_Table[Quantity] )Tables
Section titled “Tables”Calendar_Table
Section titled “Calendar_Table”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 ))