I am having a list that looks like below What i would like to achieve is to filter like for example on date 2022-08-27 and also on date 2022-08-26 respectively i only return one record which is having the maximum currentSpeed such that my final list looks like below Below is how my code looks like and the way i