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

Need Rank to always Rank on all Data regardless of selections

Hi, I have a Rank table that ranks sales territories based on sales. The below expression works great if no selections are made. 

Aggr(

Rank(

$(QTD_Sales),

),

[Territory Rep])


However, if a selection is made, say a specific rep is selected, their rank becomes 1. For example. TM Boston is 17 overall with no selections made.


2-8-2018 1-32-37 PM.jpg

but if I select TM Boston, then their rank changes to 1

2-8-2018 1-37-45 PM.jpg

I need it to stay 17.


I need the ranking to consider all of the reps regardless of which rep is selected so we can look at specific rep information and their overall rank.


Thanks!

1 Solution

Accepted Solutions
sunny_talwar

How is $(QTD_Sales) defined? You need to ignore selection in Territory field for the variable

View solution in original post

2 Replies
sunny_talwar

How is $(QTD_Sales) defined? You need to ignore selection in Territory field for the variable

Digvijay_Singh

May be in QTD_Sales variable inside Sum function you need to use set expression as {<Territory Rep=>} or any other field for which you want to disregard selections