Rolling 3-month growth vs the same 3 months last year
Compare a rolling 3-month total with the same window a year earlier using SAMEPERIODLASTYEAR, VAR and DIVIDE, a steadier growth rate than single months.
You will learn to
- Shift a rolling measure back a year
- Write growth as (new − old) ÷ old with a variable
- Explain why rolling growth is steadier than monthly growth
How it works
Month-by-month growth is jumpy in a small shop: one big bike order swings it by 100%. Comparing **rolling 3-month** totals with the **same three months last year** keeps the seasonality fair (summer vs summer) and smooths the noise.
You don’t need a new window for last year. Evaluate the rolling measure itself with shifted dates: `CALCULATE([Sales R3M], SAMEPERIODLASTYEAR('Date'[Date]))`. In the May 2025 row the dates become May 2024, and `[Sales R3M]` then rolls back from 31 May 2024.
Here `[Sales R3M]` already shows blank until three months of history exist, so the comparison stays blank in January and February 2025 instead of comparing against a half-empty window. Store last year’s value in a **variable** so you only write it once, then apply the growth formula **(new − old) ÷ old** with `DIVIDE`.
Practice it hands-on with a real data model and a live report that updates as you type.
R3M Growth vs Prior 3M = VAR Prior = CALCULATE([Sales R3M], DATEADD('Date'[Date], -3, MONTH)) RETURN DIVIDE([Sales R3M] - Prior, Prior)