Forum Discussion
Filter import date to latest date on that date
- 3 years ago
I think this could work
Find max import date
then check to see if that max date = import date
of yes then filter that
i know what i want ti achieve but cant put it in a power query formula
- 3 years ago
It picks up the first value of table through Table.FirstValue which is the date in your case.
Corresponding to this date, it finds the last Sunday which is 23-Jul for 26-Jul date. Then it will generate Monday (17-Jul) to Sunday (23-Jul) list.
Filter will select only those rows where Import date lies in this list of dates.
Hi
what is the formula to get max date time
so my column has date time
21/07/2023 15:17:26
21/07/2023 17:17:25
What m code formula gives me the max date time from the column?
Two ways
Table.Max(Previous Step Name, "Column Name")[Column Name]
List.Max(Previous Step Name[Column Name])