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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Opposite of FirstSortedValue

Hi,

What is the exact opposite of FirstSotedValue i.e some thing like LASTSortedValue?

Thx

C

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

The opposite is the firstsortedvalue too, only you put a - in front of the field/expression you want to sort on.

firstsortedvalue(Customer, Orderdate) gets the customer with the minumum orderdate

firstsortedvalue(Customer, -Orderdate) gets the customer with the maximum orderdate


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

The opposite is the firstsortedvalue too, only you put a - in front of the field/expression you want to sort on.

firstsortedvalue(Customer, Orderdate) gets the customer with the minumum orderdate

firstsortedvalue(Customer, -Orderdate) gets the customer with the maximum orderdate


talk is cheap, supply exceeds demand
er_mohit
Master II
Master II

use vlastsortedvalue