Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
vignesh_s
Creator
Creator

rank fun

i have 2 9's so im geting 2-3 and 2-3 as rand, for 8 i got 4 ,so i should get 3 as rank for 8,can i get the expression for tat


v.png

1 Solution

Accepted Solutions
zhadrakas
Specialist II
Specialist II

there is definitely a better way to do it but you could use this expression

if(isnull(Rank(total aggr(Rank(concat(String&ID)), ID))),
above(Rank(total aggr(Rank(concat(String&ID)), ID))),
Rank(total aggr(Rank(concat(String&ID)), ID)))

View solution in original post

5 Replies
devarasu07
Master II
Master II

zhadrakas
Specialist II
Specialist II

cou could try this:

Rank(total aggr(Rank(concat(String&ID)), ID))

eventually you Need to uncheck "hide null values" in presentation tab

vignesh_s
Creator
Creator
Author

i wanna display that value too

zhadrakas
Specialist II
Specialist II

there is definitely a better way to do it but you could use this expression

if(isnull(Rank(total aggr(Rank(concat(String&ID)), ID))),
above(Rank(total aggr(Rank(concat(String&ID)), ID))),
Rank(total aggr(Rank(concat(String&ID)), ID)))

vignesh_s
Creator
Creator
Author

thank you