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: 
jessica_webb
Creator III
Creator III

Ranking expression value

Hi, I have a table with a few dimensions, and several expressions.

But, a basic version of the table is:

DIM - IDDIM - TypeEXP - Avg(Score)RANK
123A15.31/8
123B16.52/8
123C28.56/8
456A173/8
456B71.28/8
789A215/8
234A194/8
234B37.57/8

What I would like, is another expression that ranks the expression value, and tells me how many places it's out of - so the fourth column.

How would I do this?

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

My bad, try this

Rank(TOTAL Avg(Score)) & '/' & Count(TOTAL ID)

View solution in original post

5 Replies
sunny_talwar
MVP
MVP

May be this

Rank(Avg(Score)) & '/' & Count(TOTAL ID)

jessica_webb
Creator III
Creator III
Author

No, that just gives me 1/8 for every value...

sunny_talwar
MVP
MVP

My bad, try this

Rank(TOTAL Avg(Score)) & '/' & Count(TOTAL ID)

sunny_talwar
MVP
MVP

Or this

(Count(TOTAL ID) - Rank(Avg(Score)) + 1) & '/' & Count(TOTAL ID)

jessica_webb
Creator III
Creator III
Author

Perfect - thank you very much