Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
knight_rider2905
Contributor
Contributor

Rank function

Hi I'm trying to use rank function on given below expression 

rank(avg( Col1)-fractile(Column2,0.9) * no. of orders ]
 
But it's returning all one values can someone please help me on how to apply rank expression to this function I need to resolve it urgently.
 
Thank you
Labels (1)
3 Replies
Ksrinivasan
Specialist
Specialist

hi,

try this

=rank(((avg( Col1)-fractile(Column2,0.9)) * [no. of orders ]) 

ksrinivasan

knight_rider2905
Contributor
Contributor
Author

Hi Srinivasan,

Thank you for reply but I want no of orders to be multiplied by
fractile(Column2,0.9) only but your expression is multiplying number of
orders by
(avg( Col1)-fractile(Column2,0.9)

can you pls look into it and let me know,

Thank you
Ksrinivasan
Specialist
Specialist

hi,

Fractile(Column(2),0.9) * ([no. of orders ]) 

ksrinivasan