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

Field content according last date

Hi everybody,

here is a simple problem (i'm sure) i can't solve.

I want to display the status corresponding to the last date for each Name

Aggr function seems to give the right result but ONLY if status are the same.

My goal is to fill Status with the value according the last date

Thank you for your help

best regards

chris

2 Replies
jerem1234
Specialist II
Specialist II

Do u want as expression or calculated dimension?

For expression and with Name as a Dimension, any one of these expressions should do the job:

=firstsortedvalue(Status,-Date)

=subfield(concat(Status,'|',-Date),'|',1)

=Concat(IF(aggr(Rank(Date),Name,Date)=1,Status))

If you want as calculated dimension with Name as Dimension:

=IF(aggr(Rank(Date),Name,Date)=1,Status)

Hope this helps!

MayilVahanan

Hi


Try like this

=firstsortedvalue(Status,-Date)

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.