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

Is there a LastValueSorted

Hi Guys,

Like FirstSortedValue, is there a LastValueSorted as I need the lowest value rather than the first, or is there another way?

Thanks

1 Solution

Accepted Solutions
sunny_talwar

You can change the sort order

FirstSortedValue(Dim, -Date) -> 1st from the top

FirstSortedValue(Dim, Date) -> 1st from the bottom

View solution in original post

4 Replies
sunny_talwar

You can change the sort order

FirstSortedValue(Dim, -Date) -> 1st from the top

FirstSortedValue(Dim, Date) -> 1st from the bottom

sushil353
Master II
Master II

hi,

You can use + or - sign to reverse the sorting order like:

firstsortedvalue(Customer,-orderDate)


HTH

shraddha_g
Partner - Master III
Partner - Master III

firstsortedvalue(Dimension, -Measure)

It will give you last value

Anonymous
Not applicable
Author

Thanks guys, I've got the answer now lol.