Skip to main content
Albero Academy

Time Intelligence

Year-to-date, prior period and growth — with a Calendar table.

DAX8 min

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

time-intelligence measures
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

  1. 01Time intelligence computes YTD, prior period and growth via dedicated DAX functions.
  2. 02TOTALYTD, SAMEPERIODLASTYEAR and DATEADD are the workhorses.
  3. 03They require a proper Calendar dimension marked as a date table.
  4. 04Build a continuous Calendar table first for any time-based analysis.

Finished this chapter?

Mark it complete to track your progress through Power BI.