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

How to select the latest value for a given set of values

Hi,

     I have a pivot table as below.

Table 1     

Business Owner     Tickets     Assigned to     Start date of ticket    

                                   N12          Mark               12/12/2012

Bob                            N13          Mathew           01/01/2015

John                         A 70          Hanna              12/16/2013

The requirement is to create a new column which displays the name of the assigned ticket according to the most recent "start date of ticket". For example the new column would have

Table 1     

Business Owner     Tickets     Assigned to     Start date of ticket     Latest assigned to

                                   N12          Mark               12/12/2012                Mathew         

Bob                            N13          Mathew           01/01/2015

John                         A 70          Hanna              12/16/2013                   Hanna             

Thanks.

Regards,

Deepti

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

=FirstSortedValue([Assigned to], -Aggr(Max([Start date of ticket]),[Business Owner])

View solution in original post

2 Replies
MK_QSL
MVP
MVP

=FirstSortedValue([Assigned to], -Aggr(Max([Start date of ticket]),[Business Owner])

deepti_singh
Creator II
Creator II
Author

It worked !

Thanks Manish.