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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
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 ];