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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Finding date using Weeknum Weekday and Year

Hi Team,

I have weeknumber column WeekDay Colum and Year column, I have to find date for this.

Can you please help me.

 

Thanks!

1 ACCEPTED SOLUTION
The8
Helper II
Helper II

Hi,

I will try to explain you with example.
-Below is the table with weeknumber,week day and year

The8_1-1684915474112.png


Use the below DAX formula to generate the date.

Date = DATE([Year], 1, 1) + ([Week Number] - 1) * 7 + SWITCH([Week Day], "Monday", 0, "Tuesday", 1, "Wednesday", 2, "Thursday", 3, "Friday", 4, "Saturday", 5, "Sunday", 6)
 

The8_0-1684915333699.png

I hope it's clear now.

 



 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

@The8 ,

Your result is not correct sorry, 23/05/2023 was Tuesday and in result it is showing as Wednesday, which is not correct

Hi,
It depends on which date you are actually starting you week.
If you are starting your week on Sunday you have to modify the DAX formula as mentioning Sunday as 0 and if you arer starting you calander week on Monday then you can use the above mentioned DAX formula..


The8
Helper II
Helper II

Hi,

I will try to explain you with example.
-Below is the table with weeknumber,week day and year

The8_1-1684915474112.png


Use the below DAX formula to generate the date.

Date = DATE([Year], 1, 1) + ([Week Number] - 1) * 7 + SWITCH([Week Day], "Monday", 0, "Tuesday", 1, "Wednesday", 2, "Thursday", 3, "Friday", 4, "Saturday", 5, "Sunday", 6)
 

The8_0-1684915333699.png

I hope it's clear now.

 



 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors