Forum Discussion
Error when trying to convert a date to a month name
- 6 years ago
Hi the first argument of the Date.MonthName-function has to be of type date. In your case, you're referencing a table. The second argument is optional, but expects a text-string. That's what triggers the current error-message, because you've referenced a date-value there.
So simply using it like so should do the trick:
Table.AddColumn(#"Removed Errors", "Month_Name", each Date.MonthName([Date_Full]))
Hi the first argument of the Date.MonthName-function has to be of type date. In your case, you're referencing a table. The second argument is optional, but expects a text-string. That's what triggers the current error-message, because you've referenced a date-value there.
So simply using it like so should do the trick:
Table.AddColumn(#"Removed Errors", "Month_Name", each Date.MonthName([Date_Full]))
- Anonymous6 years agoNot applicable
Ah! Thank you! I'm not sure how I missed that! It's working now.