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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
JoseGarcia
Creator III
Creator III

Top ten selection

Hi everyone, 

trying to set a button that automatically will select my top ten Risk current values.
Using formula below but not working? 

Can anyone help?

=if(aggr(rank(sum(currentImpactValue)), Risk_ID)<=10, sum(currentImpactValue))

Thanks a million!

Jose

Labels (1)
1 Solution

Accepted Solutions
agigliotti
Partner - Champion
Partner - Champion

you could use the below calculated dimension:

=aggr( if( rank( sum(currentImpactValue) ) <= 10, Risk_ID), Risk_ID)

it'll give you the top 10 Risk_ID by currentImpactValue.

if you want to automatically select those values of Risk_ID dimension you can create a bookmark as 

=rank( sum(currentImpactValue) ) <= 10

and apply it as a button action.

i hope it can helps.

View solution in original post

4 Replies
agigliotti
Partner - Champion
Partner - Champion

you could use the below calculated dimension:

=aggr( if( rank( sum(currentImpactValue) ) <= 10, Risk_ID), Risk_ID)

it'll give you the top 10 Risk_ID by currentImpactValue.

if you want to automatically select those values of Risk_ID dimension you can create a bookmark as 

=rank( sum(currentImpactValue) ) <= 10

and apply it as a button action.

i hope it can helps.

JoseGarcia
Creator III
Creator III
Author

thanks a million!!!
it worked 

jose

seemawadekar
Contributor III
Contributor III

Hi @agigliotti ,

Thanks for your answer. 

I have couple of filters - region and manager. Its works for few values of the filters but not for others. 

Can you help me resolve it?

Appreciate your help. 

 

agigliotti
Partner - Champion
Partner - Champion

Hi @seemawadekar ,

Please add more details about your request.

Best Regards