- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Creating a week offset that resets every year
Hi
Im in the middle of creating a calendar table for a new report and am seeking a way of reporting in variable periods for each year. Is it possible that for the 1st january the period starts and for the 31st December it ends. It would be useful for me for every x number of weeks = 1 period allowing me to change reporting periods as I please.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I hope I understood correctly,
If you want to define date periods with a text or a number column. You can define the date period in Power Query. For example. You want to have a two week periods.
Add a custom column and add something like this.
if Date.DayOfYear([Date]) <= 14 then "Period1" else
if Date.DayOfYear([Date]) > 14 and Date.DayOfYear([Date]) <= 28 then "Period2" else "Period3"
Something along those lines. Using Date.DayOfYear will define this code for every year in your date table
Thanks
Joe
If this post helps, then please Accept it as the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can go through the following blog for creating a week offset that resets every year-

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
10-08-2024 06:08 AM | |||
08-06-2024 12:55 PM | |||
09-12-2024 08:26 AM | |||
02-29-2024 08:33 AM | |||
01-07-2025 06:56 AM |
User | Count |
---|---|
13 | |
11 | |
10 | |
10 | |
9 |
User | Count |
---|---|
29 | |
16 | |
15 | |
13 | |
12 |