Year To Date Sales formula
YTD Sales: =
CALCULATE (
[Total Sales],
FILTER (
ALL ( 'DateTable' ),
'DateTable'[DateYear] = MAX ( 'DateTable'[DateYear] ) &&
'DateTable'[Date] <= MAX ( 'DateTable'[Date] )
)
)