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

how to avoid a branch name from top 5 and bottom 5 expression

while doing top 5 bottom 5 scenario,i got a doubt to how to avoid a branch name in expression.

i have an expression

 =if(Aggr(rank(-sum(sale))<=5 ,BRANCH),BRANCH)

if  i want  not to show 'delhi' in top 5  then how can i do this ?


2 Replies
Arthur_Fong
Partner - Specialist III
Partner - Specialist III

Try this:

if(Aggr(rank(-sum({<BRANCH-={'delhi'}>}sale))<=5 ,BRANCH),BRANCH)

Thanks and regards,

Arthur Fong

Brett_Bleess
Former Employee
Former Employee

Venkatesh, did Arthur's post work for you?  If so, please consider using the Accept as Solution button on his post to give him credit as well as let others know this was the correct solution.  

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.