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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Rank function

Hi guys,

I just wanted to ask if I wanted to rank an expression but in this scenario a lower number should be ranked higher than a higher number.

So if the set consisted of {3, 6, 8,} then 3 should be ranked as the 1st,  6 should be ranked as 2nd and 8 should be ranked as 3rd. Is there a provision for this option in the rank function?

Regards

Labels (1)
1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Use rank( -1* Value) instead of rank(Value)

or rank(-Value) or -rank(Value)


talk is cheap, supply exceeds demand

View solution in original post

3 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Use rank( -1* Value) instead of rank(Value)

or rank(-Value) or -rank(Value)


talk is cheap, supply exceeds demand
CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

You can achieve this by adding - ve sign before it

Use Rank(-FieldName) or Rank(-Sum(FieldName))

Hope it helps

Celambarasan

Not applicable
Author

Yeah of course. Stupid question