Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

exclude , not in - qlikview

Hi all,

I have a sales orders database, and I neet to extract some informations, regarding the customers.

My expression in the chart looks like :

= count({<YearOrder={'2017'},Category={'Fert','CP','Seeds'}>} DISTINCT CustomerCode)

This returns the no of customers from YearOrder 2017 based on those 3 category.

I have the following issue , if I want to return let's say the "New customers" meaning all the customers who bought in the Year Order 2017, and didin't bought from Year Order 2015 and 2016, how the expression would look like ?

Thank you!

1 Solution

Accepted Solutions
sunny_talwar

May be this

=Count({<CustomerCode = P({<YearOrder={'2017'}>})-P({<YearOrder={'2015', '2016'}>})>} DISTINCT CustomerCode)

View solution in original post

2 Replies
sunny_talwar

May be this

=Count({<CustomerCode = P({<YearOrder={'2017'}>})-P({<YearOrder={'2015', '2016'}>})>} DISTINCT CustomerCode)

Not applicable
Author

Hi Sunny, ty for your reply. I will let you know if it works.

Many thanks