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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Rank - Break tie?

Hello, I'm currently using the Rank function to get the top 1 of some values on my table. After playing with the data, somethimes i got "four #1" (appears like 1-4 in the rank position). Is there anyway to break this tie (alphabetically,decimals, etc)?

thanks in advance

Labels (1)
1 Reply
bdiamante
Contributor III
Contributor III

This is a couple years old, but there is a format parameter to the rank function which gives you the ability to specify how you would like a tie broken.

rank( expression, 0, 1) for example would take the lowest rank.

See the QV reference manual on page 822 for more info.