Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Getting Last Record

We have Excel data that records inventory levels of various work queues.  We are trying to create a series of QlikView gauges that display the ending inventory for the latest date posted for each of the queues.  In general the data looks like this:

TransDateQueueStartingInvEndingInv
1/11/15Queue11200987
1/12/15Queue1987484
1/13/15Queue1484528
1/11/15Queue289658709
1/12/15Queue287098488
1/13/15Queue284888564
1/14/15Queue285648876

So the first gauge would display (for Queue1) the value of 528 and the second gauge would display (for Queue2) the value of 8876 both representing the latest dates for their respective queues.  Wed tried various expressions using PEEK like this:

=If(Peek(Queue)='Queue1',Peek([Ending Inv]),-1)

but were unsuccessful.  Any help would be appreciated.  Thanks!!

1 Reply
flochi75
Creator III
Creator III

salut Eric,

Je ne sais pas si ta demande est toujours d'actualité mais tu veux ça:

Capture.PNG

Tu peux le faire ainsi :

Capture2.PNG

Et dans ton tableau avec Queue en dimension, l'expression suivante de donnera la valeur par Queue de la date max :

Capture3.PNG

Cordialement,

Florent.