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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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