Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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.
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
111 | |
93 | |
88 | |
35 | |
35 |
User | Count |
---|---|
154 | |
101 | |
80 | |
63 | |
54 |