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: 
Not applicable

How to show top 10 managers in list box?

Hi

i want to show top 10 managers in list box

i have salry and manger columns are there now i want to show top 10 mangers in list box

Thanks,

10 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Choose the option <Expression> and use an expression like =aggr(if(rank(sum(salry))<=10,manager),manager). Make sure to use the correct case sensitive field names.


talk is cheap, supply exceeds demand
ecolomer
Master II
Master II

Nada_6.png

Not applicable
Author

Hi thanks for giving

but not in chart,pivot,or straight table

i want to show in list box with check box selection

for check box selection

ecolomer
Master II
Master II

You can use the expresion explained by Gysbert Wassenaar

Not applicable
Author

i used ur expression

but its showing all the values not top 5 values

Not applicable
Author

Thats not giving result

ecolomer
Master II
Master II

here

Not applicable
Author

PFA Sample QVW

Not applicable
Author

Per the solutions provided, I see that the potential issue is that by using an expression in a listbox you don't have the same listbox functionality (selections/colors) because once a selection is made, the expression is then calculated on the remaining records which changes the output. The ten original records are never shown together when one or more managers are selected, and this may not be the desired response.