Forum Discussion
Anonymous
3 years agoNot applicable
Previous Year To Date
Hi, Apologies as I know this has been asked and answered numerous times before. I'm trying to get the sales for LY 01/01/2022 to todays date but unsure on how to go about it. I tried to u...
- 3 years ago
hi Anonymous
you need some code to reflect YTD, try like:
CALCULATE(
SUM(Transactions[Sales]),
DATESYTD(SAMEPERIODLASTYEAR(Calendar[Date]))
)
BrianConnelly
Resolver III
3 years agoDid you test my formula, I specifically made it same period?
FILTER(ALL(Calendar),YEAR(Calendar[Date]) = todayYear -1
&& Month(Calendar[Date]) <= todayMonth
&& Day(Calendar[Date]) <= todayDayAnonymous
3 years agoNot applicable
Yes, it's pulling up FY, unsure why.
- BrianConnelly3 years ago
Resolver III
Can you show the relationships between the table and the date dimension? It seems you might have a problem there.
- Anonymous3 years agoNot applicable