Forum Discussion
Join Month Name with Year
I have a DD/MM/YYYY column; I want to extract & concatenate Month Name & YYYY into a new column.
Can this be completed in one fell swoop? So new column, Month Name, " ", YYYY.
4 Replies
- AnonymousNot applicable
= Table.AddColumn(PriorStepOrTableName, "Mo/Yr", each Date.MonthName([Date]) & " " & Text.From(Date.Year([Date])), type text)
--Nate
- Aj72Frequent Visitor
Thanks watkinnc, however I'm getting an error in the new column. I'm wondering if it is to do with the original date column being in 'ABC123' format - 01/04/2022?
- AnonymousNot applicable
Yes, I assumed your dates were type date. If they are text values, and really are "MM/DD/YYYY", first just change that column to type date. Then the list column expression should work.
--Nate
- Aj72Frequent Visitor
My apologies for this, I'm getting a cyclic reference error 🤔
= Table.AddColumn(#"Table 3 (Sheet1)", "Mo/Yr", each Date.MonthName([Leavers by date]) & " " & Text.From(Date.Year([Leavers by date])), type text)