Forum Discussion
GGG123
2 years agoRegular Visitor
Issue with List.Max ([Date]) in power query
This formula Date.From(List.Max(Table.Column(#"Reordered Columns", [Date]))) - Date.From([Date]) is returning this error Expression. Error: We cannot convert the value #date(202...
- 2 years ago
I finally worked it out. All I did is to go at the beginning of the code and Filtered Out "Undeposited Items" which was mentioned in the error I was getting 'DataFormat.Error: We couldn't parse the input provided as a Date'.
The thing that I couldnt understand is that when looking at the Column Profile, everything showed 0 Error and the count seemed to be all in order.
Thanks for your help anyway!
Joe_Barry
2 years agoSolution Sage
Hi GGG123
This video will help you create the MaxDate in a new column. https://www.youtube.com/watch?v=hidJ5T_DYQ0
You can then create a custom column
[NewColumn] - [Date]
this will return a duration value
Hope this helps