Skip to main content
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: 
ppmc
Partner - Contributor II
Partner - Contributor II

AND filter

I have an order list with one line per article. As result i need a list with for example all orders with article1 AND article2. Can anyone help me to create an AND filter to the same field?

1 Solution

Accepted Solutions
stephencredmond
Luminary Alumni
Luminary Alumni

If you have a table like this:

OrderID, ArticleID, Date, Price...

And one like this:

ArticleID, ArticleName, ...

Then you could do this:


A2:
Load Distinct OrderID, ArticleID As ArticleID2
Resident Orders;
Left Join Load Distinct ArticleID As ArticleID2, ArticleName As ArticleNameAND
Resident Articles;
Drop Field ArticleID2;


Then you can have "AND" mode in the list box for the ArticleNameAND field.

View solution in original post

4 Replies
Not applicable

Hi Wolfgang,

please drop a short data example in Excel or so.

Thank´s !

Rainer

stephencredmond
Luminary Alumni
Luminary Alumni

If you have a table like this:

OrderID, ArticleID, Date, Price...

And one like this:

ArticleID, ArticleName, ...

Then you could do this:


A2:
Load Distinct OrderID, ArticleID As ArticleID2
Resident Orders;
Left Join Load Distinct ArticleID As ArticleID2, ArticleName As ArticleNameAND
Resident Articles;
Drop Field ArticleID2;


Then you can have "AND" mode in the list box for the ArticleNameAND field.

ppmc
Partner - Contributor II
Partner - Contributor II
Author

Hi Rainer,

thank you fpr your interest. I got the right result with Stephen's answer.

Nice greetings

Wolfgang

ppmc
Partner - Contributor II
Partner - Contributor II
Author

Hi Stephen,

thank you for your example. It works!

Nice greetings

Wolfgang