Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
zekazak
Creator
Creator

Show the most recent row in chart

Hello,

I've got the chart like this:

EmailAccount IDDate Created
Email11111105/05/11
Email11111206/05/11
Email11111307/05/11
Email22222212/05/11
Email33333304/05/11


The question is how to display  "Email | AccountID | Date Created" where Date Created is the most recent. Is it possible to be setted up with expressions? So basically I want to see the result like this:

EmailAccount IDDate Created
Email11111307/05/11
Email22222212/05/11
Email33333304/05/11


Any idea will be helpful.

Thank you in advance!

~Sergejs

1 Solution

Accepted Solutions
Not applicable

If you can do it in the load script with a preceeding load it would be ideal. It would look something like this.

LOAD email,[Account ID],MAX_DATE as [Date Created];

LOAD email,

     [Account ID],

     max([Date Created]) as MAX_DATE from table1 group by email,[Account ID];

View solution in original post

3 Replies
Not applicable

If you can do it in the load script with a preceeding load it would be ideal. It would look something like this.

LOAD email,[Account ID],MAX_DATE as [Date Created];

LOAD email,

     [Account ID],

     max([Date Created]) as MAX_DATE from table1 group by email,[Account ID];

nagaiank
Specialist III
Specialist III

As suggested by trey701, this can be done using load script. Example is attached.

zekazak
Creator
Creator
Author

Hi both,

Thank you for your help. Very helpful and understandable explanation.

Best Regards,

~Sergejs