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: 
Not applicable

display load time where ID = something

Hi I am trying to display time in A TEXT BOX corresponding to latest load. How could I achieve that?

In SQL, query would be something like:

SELECT      [TimeDuration]

FROM          [TABLE]

WHERE      [ID]  = (SELECT MAX(ID)

                                FROM

)

1 Solution

Accepted Solutions
anbu1984
Master III
Master III

=Max({<ID={'value'}>}[TimeDuration])

=Max({<ID={'$(=Max(ID))'}>}[TimeDuration])

View solution in original post

5 Replies
anbu1984
Master III
Master III

=Max({<ID={'value'}>}[TimeDuration])

=Max({<ID={'$(=Max(ID))'}>}[TimeDuration])

jonathandienst
Partner - Champion III
Partner - Champion III

Hi

In the front end, either of these two:

=Only({<ID={"$(=Max(ID))"}>} TimeDuration)

or

=FirstSortedValue(TimeDuration, -ID)

HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Not applicable
Author

Thanks a lot, anbu's second suggestion worked!

Not applicable
Author

Hi anbu, your suggestion works where the field is numeric, however for some reason it doesn't work where my field is a string. Could you pls help with that?

anbu1984
Master III
Master III

Use Max() for numeric fields

Use MaxString() for string fields