Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Get the top salesman in a textbox

Hi,

How do I get the top salesman in a textbox just the name.

Salesman  Sales

A                 1000

B                  2223

C                  2311

A                 3234

So I want to sum the sales and show me the highest Salesman in a textbox, so 'A'.

For now, I've stripped a chart and showing largest value in a chart, it works, but I'm sure I've done it in a textbox before.#

Thanks guys

1 Solution

Accepted Solutions
sunny_talwar

Try like this:

FirstSortedValue(Salesman, -Aggr(Sum(Sales), Salesman))

View solution in original post

4 Replies
sunny_talwar

Try like this:

FirstSortedValue(Salesman, -Aggr(Sum(Sales), Salesman))

Anonymous
Not applicable
Author

Thanks Sunny

sunny_talwar

Always glad to help

Anonymous
Not applicable
Author