Forum Discussion
Anonymous
6 years agoNot applicable
Convert text to dates in a column with mixed date types
Hi all, I'm trying to do time studies using an excel source file with a monthdaytime column populated with data coming from multiple countries. In the date column, half of the dates are written ...
- 6 years ago
Hi Anonymous ,
Do you have another column identify the date column type? For example the date 2/1, If can be first day of february or the second day of january if you do not have any other column can identify the format.
If you do have one, we can create a custom column depends on it easily in Power Query Editor.
if [Type] = "MMDD" then Date.FromText([Date]) else Date.FromText([Date],"fr-SN")
BTW, pbix as attached.Best regards,
Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
5 years agoNot applicable
Hello,
I do have and download from SAP which i cant change and have mixed date formats see the example please.
any idea how to convert it to dates
date
M 11.2020
M 02.2021
D 05.02.2021
D 19.02.2021
W 14.2021
D 09.04.2021
W 15.2021
W 16.2021
thanks