Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi,
With M, How can I convert my Week Ending column from a simple mm/dd/yy to something like WE mmdd?
Solved! Go to Solution.
If it hates that, try this instead:
"WE " & Date.ToText([my-date-column],"MMDD")
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
Would this work:
Date.ToText([my-date-column],"WE MMDD")
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