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: 
Matt_M
Partner - Contributor
Partner - Contributor

Partitioned Rank by multiple dimensions

Hi Community,

My ultimate goal is to only show the top N lines on a map for each group.

My approach is to define a rank variable and use that to select the top N to filter in the map view.

I would like to create a rank variable that ranks a subset of the table based on multiple dimensions (attached) and shown below. Rank is partitioned across the "Year", "Quarter" and "Cluster" variables

Matt_M_0-1657264297230.png

I have tried two forms of the rank function:

  1. rank(sum(pax_count)), which produces 1 for every row
  2. aggr(rank(sum(pax_count)), 'Year') produces nulls

How can i define a rank variable partitioned across multiple dimensions? 

Thanks for any help

Labels (1)
1 Reply
Frank_S
Support
Support

Perhaps what you need is the following to achieve your objective?

Please remember hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!