Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
which one is the best in terms of performance to use either rank() function or dimensional limits to get the top 10 values?
I would suggest the Dimension Limit as is already build it functionality already optimized for this task.
Dimension Limits
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)
=Aggr(If(rank(Sum(sales))>=10,employee),employee)
I would recommend Dimension Limit as it is built-in Function and made for limiting Dimension values and will have better performance.
Another vote for DIMENSION LIMITS
Andy
Unless you are looking to use a pivot table (or another object with similar constraints), dimensional limits is the way to go
Thank you all for your replies..
but may i know the difference between those two rank() and dimensional limits?
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