Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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.
Solved! Go to Solution.
WeekNum has a built in option for this. If you select ',2' after the date in WeekNum it will use Monday's automatically.
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 |
Proud to give back to the community!
Thank You!
WeekNum has a built in option for this. If you select ',2' after the date in WeekNum it will use Monday's automatically.
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 |
Proud to give back to the community!
Thank You!