Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
priya945
Creator
Creator

Load ID by Max date in Script

Hi All,

Below might be a basic but not able to attain the output. Please help

Test:
LOAD * Inline [

ID, Date
1, 7/28/2020 11:26:51 PM
1, 7/27/2020 10:04:20 AM
1, -

2, 7/29/2020 10:03:21 AM

];

Output

IDDate
17/28/2020 23:26 PM
27/29/2020 10:03 AM

 

Thanks

Labels (1)
1 Solution

Accepted Solutions
priya945
Creator
Creator
Author

Solution may be as below

NoConcatenate
Test1:
LOAD ID,
max(Date) as Date

Resident Test
Group By ID;

DROP Table Test;

View solution in original post

2 Replies
brijesh_fofadiy
Contributor III
Contributor III

Hi Priya,

Please use below expression to get your result :

Aggr(Date(Max(Date)),ID)

priya945
Creator
Creator
Author

Solution may be as below

NoConcatenate
Test1:
LOAD ID,
max(Date) as Date

Resident Test
Group By ID;

DROP Table Test;