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

Preparing for a certification exam? Ask exam experts all your questions on May 15th. Register now.

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
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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