Cheat Sheets/Power BI/TOTALYTD
DAX function

TOTALYTDDAX function reference

Year-to-date total.

Syntax

dax
TOTALYTD(<expression>, <dates>, [<filter>], [<year_end_date>])

Examples

dax
TOTALYTD(SUM(Sales[Amount]), 'Date'[Date])
A running total
dax
TOTALYTD(SUM(Sales[Amount]), 'Date'[Date], "6/30")
YTD using a fiscal year ending June 30
dax
TOTALYTD(SUM(Sales[Amount]), 'Date'[Date], Sales[Channel] = "Online")
Online-only YTD, via the optional filter argument

Common mistakes & gotchas

Related DAX functions

From Time intelligence

Used in these tutorials

← Back to the Power BI (DAX) cheat sheet