Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
100 | |
80 | |
63 | |
58 |
User | Count |
---|---|
148 | |
111 | |
94 | |
84 | |
67 |