Hi,
I have the following formula that i that brigs back data for current month and bring back data for last month if today is 1st of the month.
I need to modify this formula to do exactly same, but for the previous year.
This is the formulas I use
DateTimeDay(DateTimeToday())-1
if DateTimeDay(DateTimeToday()) = 1
then DateTimeAdd(DateTimeAdd(DateTimeToday(),[Date today]*-1,"days"),-1,"month")
else DateTimeAdd(DateTimeToday(),(DateTimeDay(DateTimeToday())-1)*-1,"days") endif
Any help would be very much appreciated
Thank you