Dashboard Mode - Year-over-year growth
Business Question
How much did sales grow compared to the same period last year?
How much did sales grow compared to the same period last year?
| Year | Month | Sales |
|---|---|---|
| 2022 | January | 1000 |
| 2022 | February | 1200 |
| 2022 | March | 1100 |
| 2023 | January | 1300 |
| 2023 | February | 1500 |
| 2023 | March | 1400 |
Total Sales = SUM(Sales[Sales])Sales LY = CALCULATE([Total Sales], SAMEPERIODLASTYEAR(Sales[Date]))YoY Growth % = DIVIDE([Total Sales] - [Sales LY], [Sales LY], 0)+----------------------+----------------------+
| Total Sales 2023 | Total Sales 2022 |
| 4200 | 3300 |
+----------------------+----------------------+
| Year-over-Year Growth % (27.27%) |
+--------------------------------------------+
| |
+------------+------------------------------+
| Monthly Sales Comparison Chart |
+------------------------------+
A slicer for Year allows selecting 2022 or 2023 or both. Selecting a year updates the KPI cards and the line chart to show data only for that year or years.
Hovering over the line chart shows exact sales per month per year.
Add a filter to show only February data. Which components update?
Sales?YoY Growth = DIVIDE([Total Sales] - CALCULATE([Total Sales], SAMEPERIODLASTYEAR('Calendar'[Date])), CALCULATE([Total Sales], SAMEPERIODLASTYEAR('Calendar'[Date])))[Total Sales] for 2023 Q1 is 120,000 and for 2022 Q1 is 100,000, what is the YoY Growth value?YoY Growth = DIVIDE([Sales] - CALCULATE([Sales], SAMEPERIODLASTYEAR('Date'[Date])), [Sales])Pass the test and this pattern moves unknown