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: 
alexpanjhc
Specialist
Specialist

rank

Hi

I am not able to figure out the rank, hrank functions.

I have a pivot table that I have 2 demisions.

but I need to rank the entire pivot table.

It looks like rank() only rankd the columns and hrank() ranks the rows.

I need to rank the entire piovt table, how do I do that?

Thanks!

Labels (1)
1 Solution

Accepted Solutions
swuehl
Champion III
Champion III

Try using something like

=aggr( rank(TOTAL sum(Value)), DIM1, DIM2)

where you list all your table dimension fields in the aggr() function (replacing DIM1, DIM2 with the dimension fields).

View solution in original post

3 Replies
Not applicable

what You mean rank entire pivot table?

could You describe Your objects/expressions/dimensions?

swuehl
Champion III
Champion III

Try using something like

=aggr( rank(TOTAL sum(Value)), DIM1, DIM2)

where you list all your table dimension fields in the aggr() function (replacing DIM1, DIM2 with the dimension fields).

alexpanjhc
Specialist
Specialist
Author

Great, Thanks swuehl!