Forum Discussion
mrpowrbihelp
2 years agoFrequent Visitor
TY and LY Running Total Formulas
Hi, We have a date table called ‘DateTbl’ and a ‘Sales file’ that are linked by the date column. There is also a column in the date table called [Year] that states “Current Year” for dates in FY23 ...
gmsamborn
Super User
2 years agoHi mrpowrbihelp
Would these measures help?
Sales = SUM( 'Sales'[Sales] )
YTD =
CALCULATE(
[Sales],
DATESYTD( 'Date'[Date], "03/31" )
)
PY =
CALCULATE(
[Sales],
DATEADD(
'Date'[Date],
-1,
YEAR
)
)
PY YTD =
CALCULATE(
[PY],
DATESYTD( 'Date'[Date], "03/31" )
)