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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
ovetteabejuela
Impactful Individual
Impactful Individual

Power Query | Date (Weekend) to "WE mmdd"

Hi,

 

With M, How can I convert my Week Ending column from a simple mm/dd/yy to something like WE mmdd?

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

If it hates that, try this instead:

"WE " & Date.ToText([my-date-column],"MMDD")

View solution in original post

This is my solution (adding a new column) 

 

="WE " & Date.ToText(Date.EndOfWeek([date-column], Day.Sunday),"MMdd")

 

Thanks for the guidance

 

Note: dd should be in lower case and not DD

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Would this work:

Date.ToText([my-date-column],"WE MMDD")
Anonymous
Not applicable

If it hates that, try this instead:

"WE " & Date.ToText([my-date-column],"MMDD")

Somehow, I know about that function however I don't know how to do that exactly like what's the complete command would look like and do I need to add extra column or can I work on the same column and apply this command, but again how do I apply the command if it's the same column that I'm working with.

This is my solution (adding a new column) 

 

="WE " & Date.ToText(Date.EndOfWeek([date-column], Day.Sunday),"MMdd")

 

Thanks for the guidance

 

Note: dd should be in lower case and not DD

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

Top Solution Authors
Top Kudoed Authors