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
Anonymous
Not applicable

Convert year and ISO week number into date

Hello,

I have the following table and i am trying to create a relationship between this table and my calendar table. Is it possible to convert the combination of year and ISO week number into a date? If yes, how to proceed? Any help is much appreciated!

 

YearISO Week numberItemsReturnsDefective
202045615
202173313
202283314
202282717
20224228
202136918
20222349
2021103720
202267821
202232510
202039315
202276316
1 ACCEPTED SOLUTION
tackytechtom
Super User
Super User

Hi @Anonymous ,

 

How about this:

tomfox_0-1657608697470.png

 

I assumed you would like to get the first day of the respective week in date format. 

I took inspiration from here.

 

Here the code for the custom column:

Date.From(Number.From(Date.AddDays(Date.FromText("1/1/"&Number.ToText([Year])),-3))-Date.DayOfWeek(Date.FromText("1/3/"&Number.ToText([Year])))-1+[ISO Week number]*7)

 

Let me know if this helps 🙂

 

/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/



Did I answer your question➡️ Please, mark my post as a solution ✔️

Also happily accepting Kudos 🙂

Feel free to connect with me on LinkedIn! linkedIn

#proudtobeasuperuser 

View solution in original post

1 REPLY 1
tackytechtom
Super User
Super User

Hi @Anonymous ,

 

How about this:

tomfox_0-1657608697470.png

 

I assumed you would like to get the first day of the respective week in date format. 

I took inspiration from here.

 

Here the code for the custom column:

Date.From(Number.From(Date.AddDays(Date.FromText("1/1/"&Number.ToText([Year])),-3))-Date.DayOfWeek(Date.FromText("1/3/"&Number.ToText([Year])))-1+[ISO Week number]*7)

 

Let me know if this helps 🙂

 

/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/



Did I answer your question➡️ Please, mark my post as a solution ✔️

Also happily accepting Kudos 🙂

Feel free to connect with me on LinkedIn! linkedIn

#proudtobeasuperuser 

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.

Top Kudoed Authors