Time intelligence answers the questions every business asks: year-to-date, same period last year, month-over-month growth. DAX has dedicated functions for these — but they require a proper Calendar dimension table.
The key functions
Sales YTD = TOTALYTD([Total Sales], Calendar[Date])Sales LY = CALCULATE([Total Sales], SAMEPERIODLASTYEAR(Calendar[Date]))YoY Growth = DIVIDE([Total Sales] - [Sales LY], [Sales LY])Sales MTD = TOTALMTD([Total Sales], Calendar[Date])
Key takeaways
- 01Time intelligence computes YTD, prior period and growth via dedicated DAX functions.
- 02TOTALYTD, SAMEPERIODLASTYEAR and DATEADD are the workhorses.
- 03They require a proper Calendar dimension marked as a date table.
- 04Build a continuous Calendar table first for any time-based analysis.
