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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

exclusion

Hi everyone,

I would like to add following condition: if any particular client has less that N (variable that I enter) records in any given month, and then take off this client from the table completely.

I misunderstood something.

It's my expression-which remove data in any given month,if condition applies

sum({$<N_Month={">$(=Variable2)"}>} N_Month)

I have dimension Client.

I'm expecting to see, if any value in the data is less than the input, hide the client.

Please see my link.

http://community.qlik.com/message/260343#260343

Thanks,

45 Replies
Anonymous
Not applicable
Author

I fixed connection to my Variable.

How can we remove clients with blanks?

whiteline
Master II
Master II

I think this condition (bolded) will work:

=aggr(if(Min(aggr(Sum(N_Month), MYear, Client))>5 and (count(total<Client> distinct MYear)=count(total distinct MYear)), Client, null()), Client)

As you don't have data you can't calculate minimum. But you can count distinct MYear for a particular client and compare it with the total distinct number of MYear.

And its better to use Sum(N_Month) as your expression, becuse there are more than one value of  N_Month for a particular MYear.

Anonymous
Not applicable
Author

Awesome.

Yes, I use Sum(N_Month).

Thank you so much,

Can I ask you if I have some questions?

whiteline
Master II
Master II

It's better to ask the community

Anonymous
Not applicable
Author

Could you help me to combine 2 expression in 1

Condition, which select my Client

=aggr(if(Min(aggr(Sum(N_Month), MYear, Client))>Variable2 and (count(total<Client> distinct MYear)=count(total distinct MYear)), Client, null()), Client)

and avg(MyField)

Thanks in advanced

Anonymous
Not applicable
Author

Dimension MYear

It's a chart.

Anonymous
Not applicable
Author

Dimension---MYear

It's a chart.

whiteline
Master II
Master II

Expression avg(MyField) with dimension MYear calculates average of MyFields for each MYear.

What do you want to calculate ?

Anonymous
Not applicable
Author

Hello again,

I attached the file with expectations and example.

Thanks in advaced,

I played with min condition, but without result

whiteline
Master II
Master II

Your chart with MYear dimension.

What is this expression supposed to calculate ?

avg({ $< Client=, N_Month={">$(=Variable2)"}>}[TC])

(for now it takes current set of data, clears Client selection and selects N_Month values higher than Variable2, then it calculates average for MYear).