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

Help me in displaying the latest record in straight table?


Hi All,

Help me in displaying only latest record based on date for distinct customers.

please find attached sample.

thanks,

Durga

1 Solution

Accepted Solutions
miguelbraga
Partner - Specialist III
Partner - Specialist III

Here have a look:

Sem Título1.png

View solution in original post

9 Replies
miguelbraga
Partner - Specialist III
Partner - Specialist III

Why not using a pivot table?

Check if this solve your problem.

Regards,

MB

Anonymous
Not applicable

if you use this expression

aggr(Max(date),business)

you get this result

that's what you want?

durgabhavani
Creator III
Creator III
Author

It is not solving the problem. i need to show only one customer id having the latest date. here it is showing three records for 123 id.

i need to show 123 abc10/25/2015 record. no other records for 123 id.


durgabhavani
Creator III
Creator III
Author

my expected output like to below.

Idbusinessdate
123abc10/25/2015
456abc9/26/2015
789lmn8/10/2015

help me to get it

miguelbraga
Partner - Specialist III
Partner - Specialist III

Try this out:

=aggr(Max(date),Id)

Anonymous
Not applicable

maybe like that

use this Expression aggr(Max(date),Id)

miguelbraga
Partner - Specialist III
Partner - Specialist III

Here have a look:

Sem Título1.png

durgabhavani
Creator III
Creator III
Author

Thanks rudolf and MB.

it is working perfect.

miguelbraga
Partner - Specialist III
Partner - Specialist III

No problem, have a good job and a great weekend