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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

emp name with highest salary

Hi Experts,

   I am new to qlikview. can anyone help me how to show employee name who is taking highest salary.PFA

1 Solution

Accepted Solutions
Not applicable
Author

simply use

=FirstSortedValue(empname, -salary)

View solution in original post

10 Replies
Not applicable
Author

simply use

=FirstSortedValue(empname, -salary)

Not applicable
Author

PFA

Not applicable
Author

PFA

Not applicable
Author

Use:

=FirstSortedValue(empname,-sal)

ashfaq_haseeb
Champion III
Champion III

Hi Try below

=FirstSortedValue(empname,-sal)

Regards

ASHFAQ

jsingh71
Partner - Specialist
Partner - Specialist

FirstSortedValue(empname,-sal)

-- Jai

Not applicable
Author

Nice way. i like it. but still i guess there must be a better way.

IAMDV
Master II
Master II

Hi Sruti,

You have 6 answers from 5 different people. Makes me feel that it's more like "Ask the audience" in "Who wants to be a millionaire" than a community question

Anyway, if you wanted to learn how to use FirstSortedValue then you can check the below video blog post.

http://qlikshare.com/?s=firstsortedvalue

Good luck!

Cheers,

DV

Not applicable
Author

Hi,

In case there would be several employees with the highest salary you could use:

     =concat(if(sal=max(all sal),empname),', ')

With the data you loaded this results only in 'abc'.

Regards,

Jo