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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Usha_pk
Helper II
Helper II

How to create a Date column using Year and week combination

Hi team,

Can you please help me how to create a date column using year and week in powerbi. Thank you!

@Ritaf1983 @Greg_Deckler @amitchandak @Ashish_Mathur @parry2k @MFelix 

4 REPLIES 4
Anonymous
Not applicable

Hi all,

First of all, thank you all for your prompt responses.

Hi @Usha_pk ,

I have created a simple sample, please refer to my pbix file to see if it helps you.

Add a custom column.

Date.StartOfWeek(Date.AddWeeks(#date([Year], 1, 1), [Week]-1))

vrongtiepmsft_0-1717380813287.png

How to Get Your Question Answered Quickly - Microsoft Fabric Community

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Rongtie

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

I agree 100%. That's why I asked what he or she means, specifically, by "week", also what the expected result is.

 

If for example he or she wants the last day of that week, and [week] is, let's say, a 0-indexed weeknum value essentially equal to FLOOR(DIVIDE(julian date, 7), 1) etc.

 

Then [YEAR] 2024 and [WEEK] 0 could mean January 7,2024.

 

I'm hoping for some more clarity and sample data from @Usha_pk 

kpost
Super User
Super User

Please define more clearly what you mean by "week" (it can mean a lot of different things), and provide a screenshot of some sample data.

 

Then tell us what the expected result is, based on those two columns.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.