In short
"How much have we sold so far this financial year?" is asked every single week. A year-to-date measure answers it for any month you're looking at, in one line of DAX.
TOTALYTD returns a running total from the start of the year to the last date in the current context. DATESYTD inside CALCULATE does the same with more flexibility, and TOTALQTD and TOTALMTD follow the same pattern.

Think of it like this
The gullak since April
Riya drops her savings into a gullak every month starting in April. Ask her in August how much she's saved, and she counts everything from April to August. Next April she breaks it open and starts again. TOTALYTD counts the gullak at whatever month you point to, and resets when the year ends.
Watch it happen
Monthly sales and fiscal YTD (₹ lakh)
1/5These are monthly sales for the first five months of FY 2026-27.
The big ideas
What you need to know
From year start to now
YTD sums from the first day of the year up to the last date visible in the current filter context.
Year end argument
By default the year ends on 31 December. Pass "3-31" for an Indian April to March financial year.
DATESYTD is the flexible twin
CALCULATE ( [Total Sales], DATESYTD ( 'Date'[Date], "3-31" ) ) does the same and lets you add more filters.
QTD and MTD too
TOTALQTD and TOTALMTD work the same way for quarter and month to date.
See it in code
Walk through the code
1Sales YTD (Calendar) =2TOTALYTD ( [Total Sales], 'Date'[Date] )3 4Sales FYTD =5TOTALYTD ( [Total Sales], 'Date'[Date], "3-31" )6 7Sales FYTD (DATESYTD) =8CALCULATE ( [Total Sales], DATESYTD ( 'Date'[Date], "3-31" ) )9 10Sales QTD = TOTALQTD ( [Total Sales], 'Date'[Date] )11Sales MTD = TOTALMTD ( [Total Sales], 'Date'[Date] )1/4Running total from 1 January. Fine for calendar-year companies.
Calendar and fiscal YTD, plus quarter and month to date, all on the marked date table.
Save yourself the pain
Common mistakes
Oops
Using TOTALYTD without a year end for a company that closes books on 31 March.
Do this instead
Add "3-31" as the year end, or your YTD resets in January halfway through the financial year.
Oops
Showing YTD for future months, where it repeats the latest total in a flat line.
Do this instead
Hide future dates, for example with a filter on dates up to today or by returning BLANK when [Total Sales] is blank.
Your mission
Your first running total
Quick check
For an Indian company, what does TOTALYTD ( [Total Sales], 'Date'[Date], "3-31" ) show for June 2026?
Go deeper
- 1Create a Sales YTD measure and show it by month.
- 2Write the same measure using CALCULATE and DATESYTD.
- 3Try QTD and MTD versions as well.
More topics at this stop
Stuck on this topic? Ask an Insider
Get 1:1 guidance from people who've walked this exact path — on the InsideEdge app.