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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
renjithpl
Specialist
Specialist

extract User name based on the top sales

Hi All,

I want to get the user name based on who has got the top sales.

My expression is Sum(Sales). and there are 500 User Names,

How can i get only the name in the text box?

Thanks

Ranjith

1 Solution

Accepted Solutions
pat_agen
Specialist
Specialist

hi,

try something like this:

=only(if(aggr(rank(Sum (Sales)),UserName)=1,UserName))

View solution in original post

1 Reply
pat_agen
Specialist
Specialist

hi,

try something like this:

=only(if(aggr(rank(Sum (Sales)),UserName)=1,UserName))