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: 
subbareddykm
Creator II
Creator II

top 3 values

hi all , I have requirement to show top 3 invoice numbers based Company and Region on my expression.

Exp:

For every Company and Region combination I need top 3 invoice numbers by default without any selection.

Can anyone tell me how to achieve this in qlikview ?

Labels (1)
1 Solution

Accepted Solutions
trdandamudi
Master II
Master II

Please take a look at the attached...

View solution in original post

7 Replies
manu1512
Creator
Creator

use can aggr function

subbareddykm
Creator II
Creator II
Author

I tried but no luck

can try with my app?

trdandamudi
Master II
Master II

Please see the attached and hope this helps..

Top 3 Invoices using Aggr and Rank.jpg

passionate
Specialist
Specialist

Concate both country and region to form a new column i.e dimension and then use dimension limit or Aggr rank combination

subbareddykm
Creator II
Creator II
Author

Its not giving the result which I ma expecting .

Example :

For Comp = A and Region = W , I have 6 Inv No ,I want only 3 Inv No which are have high value.

I hope you understood.

vishsaggi
Champion III
Champion III

May be try like:

= IF(Aggr(Rank(Sum(InvNo)), Comp, Region)<=3, InvNo)

trdandamudi
Master II
Master II

Please take a look at the attached...