Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
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: 
Not applicable

Dimension limit - sub dimension

Hi,

i've got lost in the dimension limit

I have two dimension : Store, Seller  and one expression : total of sales per seller

i want in each of any store the top 2 sellers, how can i do that?

Thanks very muich,

Jacob

I.E

  input:

StoreSellerSales
AX23
AC34
AV13
AB45
BN52
BM60
BL17

Desired output

 

StoreSellerSales
AC34
AB45
BN52
BM60
1 Solution

Accepted Solutions
Not applicable
Author

Hi,

Please find the attached QVW

! !

View solution in original post

7 Replies
MayilVahanan

Hi

Try like this

Dim: Store, Seller

Exp:

=if(Rank(Sum(Sales))<=2, Sum(Sales))

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
sunny_talwar

May be this:

Dimension: Store and Seller

Try this as your expression: =If(Rank(Sum(Sales)) <= 2, Sum(Sales))

Output:

Capture.PNG

qlikviewwizard
Master II
Master II

Hi Baruchja

Please follow Mayil's Advise.

Anonymous
Not applicable
Author

goto Dimension Limit, select Dimension Seller and define first two

as you have only one Expression it Limit based on Sales

Not applicable
Author

Hi,

Please find the attached QVW

! !

Not applicable
Author

Hi try like below in expression,


=aggr(if( rank(sum(sales),4)<=2,sum(sales)), Seller)

Not applicable
Author

Thank you all!

how ever a strange act is when i have a third column which is for example seller name, and there are 2 sellers with the same name the solutions doesn't work in 100%