Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

rank and dimension limits

which one is the best in terms of performance to use either rank() function or dimensional limits to get the top 10 values?

9 Replies
robert_mika
Master III
Master III

I would suggest the Dimension Limit as is already build it functionality already optimized for this task.

Not applicable
Author

Dimension Limits

pratap6699
Creator
Creator

assume that sum(sales) is our expression and employee is dimension ...u need to display to 10 employee sales dynamically right? we use aggr funtion with rank() we done this requirement....

at conditional dimension-->=Aggr(If(rank(Sum(sales))>=20,employee),employee) exp-->sum(sales)

pratap6699
Creator
Creator

=Aggr(If(rank(Sum(sales))>=10,employee),employee)

Not applicable
Author

I would recommend Dimension Limit as it is built-in Function and made for limiting Dimension values and will have better performance.

awhitfield
Partner - Champion
Partner - Champion

Another vote for DIMENSION LIMITS

Andy

Not applicable
Author

Unless you are looking to use a pivot table (or another object with similar constraints), dimensional limits is the way to go

Not applicable
Author

Thank you all for your replies..

but may i know the difference between those two rank() and dimensional limits?

pratap6699
Creator
Creator

rank() returns the quantity wise sales by dynamically through expression....but dimension limits also return the same thing without using expression...but sometime in conditional damension we use aggr & rank() as per requirement