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

rank() question

i have table like this. 

i used rank(score) to get top 10,  but when the score are the same, i want to sort by <# of surveys> by dec,  i do not know how to achieve it

for example:

Derick /Herica /Agnes all got 4.92, but i want to sort their rank by # of surveys

Rank   Center   Teacher Name score   # of surveys  
1Jjack4.9515 
2SDerick 4.9220 
3CHerica 4.9217 
4JAgnes 4.9226 
5SRoneill 4.9119 
6JLydia 4.9021 
7SSimone 4.8720 
8-9CBrian 4.8515 
8-9JHJames 4.8515 
10SEsme 4.8416
6 Replies
Not applicable
Author

Hi,

I think, in SORT tab (of the properties of your chart), you can first sort it by rank and then by score.

Regards,

http://quickdevtips.blogspot.com/

christophebrault
Specialist
Specialist

Hi,

If you want that your rank column be true, try this :

=rank(sum(score)+sum(# of surveys)/10000)

Turn surveys to decimal and add to score in the rank function.

Inscrivez vous à ma Newletter Qlik
DoNotMissQlik- Connect with me on Linkedin
Not applicable
Author

above both not working

center name and teacher name is dimenion and scores and # of seuveys is expression in straight table

Not applicable
Author

above both not working

center name and teacher name is dimenion and scores and # of seuveys is expression in straight table

Not applicable
Author

above both not working

center name and teacher name is dimenion and scores and # of seuveys is expression in straight table

above both not working

center name and teacher name is dimenion and scores and # of seuveys is expression in straight table

Anonymous
Not applicable
Author

hi maxshen

                   Try the following

                   Go to sort tab

                   for Rank field - check d box numeric feild- ascending

then

                   for # surveys  field - check d box numeric filed -descending

you can simply take table box n do the above.

please try n let me knw.

reagards,

vaibhav.