Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
prajapatiamar38
Creator II
Creator II

Rank()

Hi Experts,

How to give a rank on expression without considering any diamensions in straight table?

no affect of diamension on rank function

Plz help me...
Thanks.

10 Replies
Gysbert_Wassenaar

The rank of something outside the context of a dimension will always be 1.


talk is cheap, supply exceeds demand
swuehl
MVP
MVP

What is the expression you are using?

And what do you expect to get when using a rank?

prajapatiamar38
Creator II
Creator II
Author

hi...,
thanks for your reply.

according to my scenario..
is it possible in straight table or not?

prajapatiamar38
Creator II
Creator II
Author

hie..

m using three dimension...(city,place,name)
one calculated expresion...(sum(score))
and i want rank on sum(score) but without considering dimensions...
but the dimension should be there in staright table..

is it possible or not?

swuehl
MVP
MVP

Ok, but what do you expect to see then? A rank based on what differentiation, if not considering the dimensions?

As Gysbert said, you will get a constant rank for all lines, so what's the benefit of ranking then?

prajapatiamar38
Creator II
Creator II
Author

hie...
its my requirement......

as u said its give rank 1 for all...




 

CityPlaceNameScore
MumbaidddPrakash56
PunehghgAnand56
PunerrRaj56
MumbaiAAAVijay55
PunettyAkshata45
PunefffgSuraj44
PunerrVijaya43
PuneygfhLeena34
MumbaiAAAPooja30
MumbaiVileparleAnil10

i want rank lyk....

56    1

56    1

56    1

55    2

45    3

44    4

43 34

30

10

swuehl
MVP
MVP

Maybe you want

=Rank(TOTAL sum(Score))

Gysbert_Wassenaar

Try =rank(sum(score),1)


talk is cheap, supply exceeds demand
prajapatiamar38
Creator II
Creator II
Author

hie...
its my requirement......

as u said its give rank 1 for all...




CityPlaceNameScore
MumbaidddPrakash56
PunehghgAnand56
PunerrRaj56
MumbaiAAAVijay55
PunettyAkshata45
PunefffgSuraj44
PunerrVijaya43
PuneygfhLeena34
MumbaiAAAPooja30
MumbaiVileparleAnil10

i want rank lyk....

56    1

56    1

56    1

55    2

45    3

44    4

43    5

30    6

10    7

and main thing is that i want  to use this cocept in adhoc report..

so diamension selection may random..
some time 1 diamension selected and some time 3 or 2 also...