Forum Discussion
Anonymous
5 years agoNot applicable
Previous Week Start and End Date
Hi I am trying to get previous week item counts, I was able to get the counts however having difficulty to capture previous week start date and previous week end date(week start from Sunday). I am tr...
- 5 years ago
Hi Anonymous,
Try the following
Last Week Start Date = (Today()-WEEKDAY(TODAY())+1)-7 Last Week End Date = (Today()-WEEKDAY(TODAY())+1)-1Thanks,
- 5 years ago
Hi You can check the following formula
FirstDayOfLastWeek =var daynum = TODAY()RETURNdaynum - (6 + WEEKDAY(daynum) )LastDayOfLastWeek =var daynum = TODAY()RETURNdaynum - WEEKDAY(daynum)Regards,SayaliIf this post helps, then please consider Accept it as the solution to help others find it more quickly.
sayaliredij
Solution Sage
5 years agoHi You can check the following formula
FirstDayOfLastWeek =
var daynum = TODAY()
RETURN
daynum - (6 + WEEKDAY(daynum) )
LastDayOfLastWeek =
var daynum = TODAY()
RETURN
daynum - WEEKDAY(daynum)
Regards,
Sayali
If this post helps, then please consider Accept it as the solution to help others find it more quickly.