Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
varunreddy
Creator III
Creator III

How to use group by in this situation

Hi,

I have data in this format

I need maximum date by ID.

i.e. For ID = 1, Date = 3/1/2016

For ID = 2, Date = 5/1/2016

For ID = 3, Date = 6/1/2016

Is there a way I can get this?

Thanks in advance!

Cheers,

Varun

1 Solution

Accepted Solutions
martinpohl
Partner - Master
Partner - Master

hello,

use this:

left join (your data) load

ID,

max(Date) as MaxDate

resident your data

Group by ID;

Regards

View solution in original post

2 Replies
martinpohl
Partner - Master
Partner - Master

hello,

use this:

left join (your data) load

ID,

max(Date) as MaxDate

resident your data

Group by ID;

Regards

varunreddy
Creator III
Creator III
Author

Martin,

Thanks for your quick response.

Cheers,

Varun