Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
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.