Hi all,
I have the Period Start and Period End Date as I need to extract data for whole year up to and including yesterday and compare this to the same period last year.
I am using following formula to work out date today last year
DateTimeAdd(DateTimeToday(), -364, "days")
this is taking into consideration that this year is leap year. Therefore if today is Friday 11/12/2020 - same Friday last year was 13/12/2019
Everything is working as intended, except i can see issue occurring when i will need to calculate the same for non-non leap year.
Is there a way to design this flexibly, even for longer time periods?
Please see my formulas as they are at the moment down below: