Forum Discussion
Previous Week for Week Ending on Sunday
Currently, I have several weekly reports where the primary report is previous week. To get previous week, I use week numbers. I have a column called Week Relative to Current that is used for this. So if it is Week 45 and last week is 44, I set a filter for week relative to current = 1 and that gives me the previous week.
Now, I have a request to use Monday - Sunday as a week instead of Sunday - Saturday. I can get the date to reflect Sunday as the last day of the week (i.e. week ends 11/3/19 instead of 11/2/19), but I am struggling with translating that to filter for previous week. I am not sure how to get the current week to reflect ending on Sunday and even if I get that to work, I'm not sure I can translate that to week numbers to filter for previous week.
Any ideas on this would be appreciated.
WeekNum has a built in option for this. If you select ',2' after the date in WeekNum it will use Monday's automatically.
Default WeekNum = WEEKNUM(Table1[Date],1)WeekNum Option 2 = WEEKNUM(Table1[Date],2)Date Default WeekNum WeekNum Option 2 11/2/2019 0:00 44 44 11/3/2019 0:00 45 44 11/4/2019 0:00 45 45 11/5/2019 0:00 45 45 11/6/2019 0:00 45 45 11/7/2019 0:00 45 45 11/8/2019 0:00 45 45 11/9/2019 0:00 45 45 11/10/2019 0:00 46 45 11/11/2019 0:00 46 46
1 Reply
- fhillResident Rockstar
WeekNum has a built in option for this. If you select ',2' after the date in WeekNum it will use Monday's automatically.
Default WeekNum = WEEKNUM(Table1[Date],1)WeekNum Option 2 = WEEKNUM(Table1[Date],2)Date Default WeekNum WeekNum Option 2 11/2/2019 0:00 44 44 11/3/2019 0:00 45 44 11/4/2019 0:00 45 45 11/5/2019 0:00 45 45 11/6/2019 0:00 45 45 11/7/2019 0:00 45 45 11/8/2019 0:00 45 45 11/9/2019 0:00 45 45 11/10/2019 0:00 46 45 11/11/2019 0:00 46 46