March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
128 | |
90 | |
75 | |
56 | |
53 |
User | Count |
---|---|
200 | |
104 | |
101 | |
67 | |
55 |