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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

loading max time of a date

Hi all,

Any help is much appreciated on the following:

I have the following dates:

I only want to load the most recent time of each date. ie:

As this has been edited most recently

I can't seem to get the max function to work here.

Thanks,

1 Solution

Accepted Solutions
alexandros17
Partner - Champion III
Partner - Champion III

To do this use the following logic:

Tab1:

Load a,b,c resident mytab; // The field c is the one for which you need the max for each a value

left join

Load a, max(c) as maxValPerKey resident Tab1 Group by a;

Let me know

View solution in original post

3 Replies
PrashantSangle

Hi,

USe max(Date(Date#(DateField,'DD.MM.YYYY hh:mm')))

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
alexandros17
Partner - Champion III
Partner - Champion III

To do this use the following logic:

Tab1:

Load a,b,c resident mytab; // The field c is the one for which you need the max for each a value

left join

Load a, max(c) as maxValPerKey resident Tab1 Group by a;

Let me know

swuehl
MVP
MVP

Maybe something like

DATA:

LOAD

     TimestampField,

     ...

FROM ...;

INNER JOIN LOAD

     Timestamp(max(TimestampField)) as TimestampField

RESIDENT DATA

GROUP BY Daystart(TimestampField);