Month-to-date vs the same days last year

Compare a partial month fairly: shift your MTD measure back a year with SAMEPERIODLASTYEAR instead of comparing against last year’s full month.

You will learn to

  • Compare a partial month with the same days last year
  • Combine two time-intelligence steps in one measure
  • Avoid comparing a partial month with a full one

How it works

It’s 15 June and the manager asks: “Are we ahead of last June?” Comparing June 1–15 this year with **all** of last June is unfair: the month isn’t over yet, so it will almost always look behind. The fair comparison is with **1–15 June last year**.

You can build it from parts you already have. `[Sales MTD]` is month-to-date. Evaluate it with the dates moved back a year: `SAMEPERIODLASTYEAR` turns 15 June 2025 into 15 June 2024, and `[Sales MTD]` then runs from 1 to 15 June 2024.

In this recipe a slicer on `Date` plays the role of “today”. A whole-month function such as `PARALLELPERIOD` would return all of June 2024 instead, the exact mistake you are trying to avoid.

Practice it hands-on with a real data model and a live report that updates as you type.

Sales QTD LY = CALCULATE(TOTALQTD([Total Sales], 'Date'[Date]), SAMEPERIODLASTYEAR('Date'[Date]))