Forum Discussion
Anonymous
5 years agoNot applicable
problem with date format
Hello, I am working with dates that are stored as text. I changed the type to date/time but not all the cell are translated to date/time. I have error in the power bi transform data with t...
- 5 years ago
This should work Anonymous in a new custom column in Power Query
try DateTime.FromText([Column1]) otherwise DateTime.From(Number.From([Column1]))Then just rename it Date, and change the format to DateTime or Date if you don't care about the time. Make sure the first column is in text. You have data coming in in different formats so Power Query cannot do one single change to all of it to work as you'd like.
edhans
5 years agoCommunity Champion
This should work Anonymous in a new custom column in Power Query
try DateTime.FromText([Column1]) otherwise DateTime.From(Number.From([Column1]))
Then just rename it Date, and change the format to DateTime or Date if you don't care about the time. Make sure the first column is in text. You have data coming in in different formats so Power Query cannot do one single change to all of it to work as you'd like.
Anonymous
5 years agoNot applicable
it works
thanks a lot
- edhans5 years agoCommunity Champion
Great Anonymous - glad I was able to assist.