How to get recent activity

Hi all,  I am working on one project so I need your help. I have one entity activity when I extend that activity that activity date is extended so that activity present in today and Tomorrow and so on. So in data grid every activity is showing so I want the latest one will be visible on page so I added one date time variable at the time of extend but now confused how to write xpath in data grid which give me recent date and time activity. Please help me Thanka
2 answers

Hello Priyanka,


Make the sort order to descending for the data time attribute to display the most recent records in the data grid 

Attached the image below



hii Priyanka Sawant 

use max function to get latest date in x path 


XPath Max | Mendix Documentation


i hope it will help you