Forum Discussion
Dataflow Null Date Value
- 6 years ago
Hello Anonymous
this is what might happen, that you don't have a text string on your whole column, but somewhere at the end a date. And it's not possible to parse a date. So you have to do a transform.columntype of this column before, and change it to text. Did you try this?
Here an example of what happen when you try to split a date
let Source = #table ( {"Date"}, { {"03.01.19-04.01.19"}, {"43468"} } ), ToDate = Table.TransformColumns(Source, {{"Date", each try Date.From(Number.From(_)) otherwise _}}), Split = Table.SplitColumn(ToDate, "Date", Splitter.SplitTextByAnyDelimiter({"-"})) in SplitBy the way... you don't need to parse it by "/". Just use a transformColumns with a Date.FromText(_,"en-US") i suppose
If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too
Have fun
Jimmy
Hi Anonymous
Do you get errors after converting to Date type, it most probably is the issue?
Mariusz
If this post helps, then please consider Accepting it as the solution.
I don't actually ever get the error in power query... it's only on the refresh of the dataflow... but, yes, it is after converting to Date format. I don't know how to clear the error? I need the columns formatted as a date.
I'm pretty certain that it is just on the End date column because of the null values.