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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
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?

Labels (1)
1 Solution

Accepted Solutions
stephencredmond
Partner - Specialist II
Partner - Specialist II

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
Partner - Specialist II
Partner - Specialist II

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