Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Rank function not working for Subtotal in Pivot table

Hi,

I have to do the ranking of the rows based on expression in Pivot table.

I have used the rank function as : Rank(Total (- Column(5))/Column(10))).

Using this expression, I am getting the ranking only for rows. For subtotal, it is not displaying anything.

Now, I have to do the ranking of subtotal also. Please help me, how I can achieve it.

Capture.PNG

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

why you are having - Column(5))??


try this:


=Rank(Total <Column(5)/Column(10)>,4)

View solution in original post

4 Replies
dinuwanbr
Creator III
Creator III

Hi,

See the attach..

Can u upload ur sample?

BR,

Dinu1

Not applicable
Author

Hi,

I am not having the licence of QlikView, so unable to access it. Can you please provide the expression which you have written in the solution.

Anonymous
Not applicable
Author

why you are having - Column(5))??


try this:


=Rank(Total <Column(5)/Column(10)>,4)

Anonymous
Not applicable
Author

or simply like:

=Rank(-L3/V3,4)  //where -L3/V3 is your expression name of 1st column