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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
PWillsNorgine
Frequent Visitor

How do I convert year and week number to a date in M language?

Hi,

 

I have a year column and a week number column in my raw data (the values were provided by week) and in a seperate Power BI model I used DAX to create a date using Sunday as the last day of the week:

DATE([Year],1,1)-WEEKDAY(DATE([Year],1,1),2)+[Week No]*7
 
I need to now change the column from DAX to Power Query M language in order to append with other raw data queries that already have date columns.
 
Does anyone know what the M script is to do this?
 
Thanks
 
1 ACCEPTED SOLUTION
Gordonlilj
Solution Sage
Solution Sage

Hi,

 

You could try the solution provided here

Re: convert week number into data

View solution in original post

1 REPLY 1
Gordonlilj
Solution Sage
Solution Sage

Hi,

 

You could try the solution provided here

Re: convert week number into data

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Kudoed Authors