Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
William_Walk
Frequent Visitor

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

2 REPLIES 2
JoeBarry
Solution Sage
Solution Sage

Hi @William_Walk 

 

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

 

nirali_arora
Resolver II
Resolver II

You can go through the following blog for creating a week offset that resets every year-

https://community.powerbi.com/t5/Community-Blog/Week-That-Resets-Yearly-Decoding-Date-and-Calendar-3...

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.