Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Limit only top 10 values

Guys,

Is it possible to write any set expression to restrict the values displayed in the straight table? If it is plz help...

7 Replies
Anil_Babu_Samineni

look here, Good response

in qlikview i want take top 10 salaries how to wright ?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
devarasu07
Master II
Master II

Hi,

Try like this,

Calculated dimension (top 10 Sales rank by Product and salesman wise)

=if(aggr(RANK(SUm(Sales),4),[Product ID],[Salesman ID])<=10,aggr(RANK(SUm(Sales),4),[Product ID],[Salesman ID]))

Limit Top 10 Sales value in Set analysis:

SUM({<[Salesman ID] = {"=Rank(SUM(Sales),4)<=10"}>}Sales)

rank.JPG

vinieme12
Champion III
Champion III

Example

Sum({<Customer = {"=Rank(Sum(Sales),1,1)<=10"}>} Sales)

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
beck_bakytbek
Master
Master

Hi Silva,

try this expression:

as calculated dimension:

if(aggr(Rank(Sum(Your Value)), YourFieled) <= 10, YourField, NULL()) and dont forget to supress the Zero-Values

as expression: Count(YourField)

i hope that helps

beck

awhitfield
Partner - Champion
Partner - Champion

Hi Siva,

you could also use Dimension limits too!.

Andy

vinieme12
Champion III
Champion III

Yes, but Sort Order largely affects what data is shown, check the app to see what I mean

SortingRank.JPG

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
KishoreSuri
Creator
Creator

Hi,

I'm using Trellis container with Dimension "=if(aggr(Rank($(vMeasure)), $(vDim1)) <= 10, $(vDim1), NULL())" ,where we have multiple measures and dimensions and Bar chart should reflect as per selections.

If we use the above the expression in Dimension, getting error as "ERROR IN EXPRESSION ')'EXPECTED " , but i didn't find any missed brackets. 

Please help us.

Thanks,

Kishore

Thanks,
Kishore S