Forum Discussion
Tom Morgan
Apr 25, 2019MVP
Using top-nested but not sure if I'm doing it right
Hi,
Hope this is an OK place for a Kusto Query language question...
Given some data, where there might be multiple versions of the same data, for instance:
+----+---------+-----...
- Apr 25, 2019Try using "summarize arg_max()" : https://docs.microsoft.com/en-us/azure/kusto/query/arg-max-aggfunction
Yoni
Microsoft
Apr 25, 2019Try using "summarize arg_max()" : https://docs.microsoft.com/en-us/azure/kusto/query/arg-max-aggfunction
- Tom MorganApr 25, 2019MVP
Yoni - thank you! Works perfectly. For everyone else, this achieves the same results as my original one, but much cleaner and faster:
TableName | summarize arg_max(Version,*) by ID