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

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

Customers who do not buy enough

Hi ,

i would like a pivot table with customers that have buy only less of  5 items

my dimension is

=AGGR (( count(distinct items), customers) < 5  ,customers)

but not kork....

any help?

Thank

3 Replies
Anonymous
Not applicable
Author

hi ,

i have solved like this :

=aggr(if( count( distinct (items)) < 5, customer),customer)

SunilChauhan
Champion II
Champion II

i belivee aggr is not require here

take

variable

v1=count( distinct (items))

and if($(V1)<5,customers)

i thing it will better because sometime aggr srinks the data.

Sunil Chauhan
Not applicable
Author

Seem to me as  the aggr is reduandent. Something like this would do the trick:

Dimension:

customer

Expression:

If(count(distinct items)>4,1) , hidden, suppress missing/zero values