Forum Discussion
Anonymous
6 years agoNot applicable
Query Editor-Replace Errors in Date column with latest date
Hello, i have a file where in one of the columns i have dates or text value "History". What i want to do in the query editor is to replace the "History" with latest date in the column. Wh...
- 6 years ago
Hi Anonymous ,
I would write it like so:
Table.ReplaceErrorValues(#"Changed Type", {{"Date", List.Max(Table.RemoveRowsWithErrors(#"Changed Type", {"Date"})[Date])}})
Greg_Deckler
Community Champion
6 years agoImkeF
Community Champion
6 years agoHi Anonymous ,
I would write it like so:
Table.ReplaceErrorValues(#"Changed Type", {{"Date", List.Max(Table.RemoveRowsWithErrors(#"Changed Type", {"Date"})[Date])}})
- Anonymous6 years agoNot applicable
Works, thank you for your support !