Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
microwin88x
Creator III
Creator III

Get the Last Row from Table by Script

Hello,

I have the following table:

ID_TCKTSTATUSDATETIMEMONTHPERIOD
TCKT003Planning In Progress03/10/201616:27:12OctOct 2016
TCKT003Request For Change03/10/201616:27:12OctOct 2016

What I need is to get the MAX DATE/TIME with the corresponding Status. In this case both DATE/TIMEs are the same, that's why I need to get only one status and this would have to be the last row: Request For Change.

Do you know how could I do that by Script?

Thank you!!

1 Solution

Accepted Solutions
2 Replies
sunny_talwar

May be using LastValue() function:

LastValue - script function ‒ QlikView

its_anandrjs
Champion III
Champion III

Trying this way

Load

ID_TCKT,

Date(Max(DATE)) as MaxDate,

Time(Max(TIME)) as MaxTime

Resident Table Where STATUS = 'Request For Change';

Regards

Anand