Year-to-date sales with TOTALYTD

Build a running total that climbs through the year and starts again every January.

You will learn to

  • Explain what a year-to-date total is
  • Write a YTD measure with TOTALYTD
  • Read a YTD line next to monthly sales

How it works

**Year-to-date** (YTD) means everything from 1 January up to the last day you are looking at. In the March 2025 row, YTD is January + February + March 2025.

`TOTALYTD(expression, 'Date'[Date])` does the work for you. It looks at the last date visible in the current row, builds the range from the start of that year, and evaluates the expression over it.

The second argument is always the date column of your date table, `'Date'[Date]`. There are siblings for other periods: `TOTALQTD` for quarter-to-date and `TOTALMTD` for month-to-date.

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

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