General Discussions

Discuss a wide range of topics! Questions about the Alteryx Platform should be directed to the appropriate Product discussion forum.
Don't forget to submit your entry for the Excellence Awards by October 30! | Need more information about the program? Check out the blog here

Custom Filter match multiple criteria (And relationship)

Highlighted
6 - Meteoroid

Hello, please help me on the issue I have on custom filter.

 

Here is the example:

 

Flter:

1

2

3

4

 

Data:

Person  Item

J             1

T             1

M            1

N            3

S            2

J             2

M            3

T             2

N             2

B             1

 

I want to select filter 1&2 to show me the person has both 1&2 item not the person has 1&2 or 1 or2

So in my example, the result should be 

J  1

J   2

T   1

T   2

 

\Please help me figure out the solution through Alteryx.

 

Thanks!

Highlighted
14 - Magnetar
14 - Magnetar

Hey @luweitroy!

 

After making sure that your Item field is a string, I would use a Summarize tool to group by the Person and concatenate the Item. From there, use a contains function in your Filter tool to keep only the records that have 1 & 2 in the Item field. Use a Text to Columns tool to separate out the rows again and you're done!

luweitroy.PNG

Highlighted
6 - Meteoroid

Well Done! Thanks