Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
I need to transform a column from dd-mm-yyyy to mmm-yy before merging it with another column, so it has to happen in the query editor and not through a measure.
How? Nothing I have tried worked. It can't be that difficult.
Thanks in advance.
Solved! Go to Solution.
Hi @Thad ,
Please try the following methods and check if they can solve your problem:
1.Create the simple table.
2.Click the Transform data and add custom column.
= Text.From(Date.MonthName([Joining date]))&"/"&Text.From(Date.Year([Joining date]))
3.The result is shown below.
Best Regards,
Wisdom Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Thad ,
Please try the following methods and check if they can solve your problem:
1.Create the simple table.
2.Click the Transform data and add custom column.
= Text.From(Date.MonthName([Joining date]))&"/"&Text.From(Date.Year([Joining date]))
3.The result is shown below.
Best Regards,
Wisdom Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Thad try custom column in PQ
Date.ToText([YourColumnForDate],"mmm-yy")
Proud to be a Super User!
Wish that was it. Unfortunately, this results in a 4-digit-value with no letters, e.g. 31.07.2022 becomes "00-22". May that be due to a wrong locale setting?
That worked - thanks!
hi , share some sample please to see the type of the column and data inside it
The data comes in dd-mm-yyyy format as text.
I am now trying a workaround by extracting the name of the month from each row (after converting the column to date format, ofc), then keeping only the first three letters of that column and then merging it with the extracted year. If you have an easier way, I woudn't be mad.
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
94 | |
92 | |
83 | |
71 | |
49 |
User | Count |
---|---|
143 | |
120 | |
110 | |
59 | |
57 |