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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!