I want to do something seemingly simple but am struggling to determine how do it in KQL. Say you have a result set with a DateTime column. I want a Kusto query that only keeps rows that have the most recent DateTime.
So for a result set like:
| Person | Ingestion DateTime |
|---|---|
| Bob | 11/12/2021 9 AM |
| Sam | 11/12/2021 10 AM |
| William | 11/12/2021 11 AM |
| Kate | 11/12/2021 3 PM |
| Aria | 11/12/2021 3 PM |
| Ben | 11/9/2021 4 AM |
I want a query that would remove all rows except for Kate and Aria since they both have the latest DateTime in the result set.
I've been trying summarize max() which seems to group the DateTimes but not filter out the older ones. Is there a way to order and then filter?