Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to sort and pick values.

Hi guys,

I got one data set like following:

first                           second        Third

01/12/2014                    1               12

01/12/2014                    3               23

01/13/2104                    2               14

I need to pick that value of the Third column whose second column's value is the highest one.

In this example it should be 23 because 3 is the highest one.

Regards,

Saurabh

1 Solution

Accepted Solutions
anbu1984
Master III
Master III

LOAD first,FirstSortedValue(second,-second) As second,FirstSortedValue(Third,-second) As Third Group By first;

Load * Inline [

first,second,Third

01/12/2014,1,12

01/12/2014,3,23

01/13/2104,2,14 ];

View solution in original post

1 Reply
anbu1984
Master III
Master III

LOAD first,FirstSortedValue(second,-second) As second,FirstSortedValue(Third,-second) As Third Group By first;

Load * Inline [

first,second,Third

01/12/2014,1,12

01/12/2014,3,23

01/13/2104,2,14 ];