Forum Discussion

sonamj's avatar
sonamj
Copper Contributor
Apr 26, 2019
Solved

How to pick up records by taking last record in each group

I am trying to implement similar logic as sql 
select * from 
(select ROW_NUMBER() OVER(
       ORDER BY ColumnName desc) AS RowNum
From TableName) temp
where RowNum=1
 
How i can achieve this in azure data explorer
I have tried this
MsCdrView()
| reduce by CallRetryId  with threshold=0.9
But this only gives me occurrences of CallRetryId in my table with pattern matching
 But if there are multiple rows i want to select the latest row in each group.
 
 

1 Reply

Resources