Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Multiple Conditions Filter

tsilverman_
7 - Meteor

Hello Alteryx Community,

 

  I am fairly new to the alteryx platform and am finding myself stuck on a particular filter request. To first explain, each row contains a key ID, that can have multiple values in another column (X). I need to filter a column with set values in one column (X), for example, "1111", "2222", "3333". However, after  have done this, I then need to filter those unique ID's to also include values "010101", "020202" etc. in column (X). The issue is that, after I filter the very first time, it only leaves me with "1111", "2222", "3333" and their key ID which then I cannot find "010101", "020202" in column X because of the previous filter.

 

I need a filter basically that states; of those values "1111", "2222", "3333" in column (X), which results in filtered Key ID's, which of those Key IDs also have values "010101", "020202". 

 

I hope this makes sense. I can provide additional details if necessary. 

21 REPLIES 21
atcodedog05
22 - Nova
22 - Nova

Hi @tsilverman_ 

 

I am using a different method i am giving list of groups (which is string) not sum (which is numeric) you are getting that error because its comparing number to string which not valid. Please use the attached workflow. "1,2" means 1st and 2nd group exist if there are more groups it be "1,2,3,.."

 

Workflow:

atcodedog05_0-1641312931272.png

 

Hope this helps : )

tsilverman_
7 - Meteor

Thank you, this error his removed. The output now shows only one key ID on my end, when there should be many other Key ID's that fit this criteria. Any thoughts?

atcodedog05
22 - Nova
22 - Nova

Hi @tsilverman_ ,

 

2 checks

1. check whether there are IDs that satisfy both the condition

2. check whether in unique tool these 2 columns are selected

atcodedog05_0-1641314066099.png

 

If still facing issue please provide sample data with issue.

 

Hope this helps : )

 

tsilverman_
7 - Meteor

I have made everything exactly the same including data types and amount of bytes. 

 

the new output is as shown:

 

tsilverman__0-1641315167390.png

It says 293,301 records were displayed. the "X" column to the right, shows values, however the left column only shows [Null] values.

 

tsilverman__1-1641315264329.png

Above, the top data input is a csv file. and the bottom is the custom text file. The text file is where I input the group and criteria, same as your file. 

atcodedog05
22 - Nova
22 - Nova

Hi @tsilverman_ 

 

I can you see you have MRN instead of Key ID is it selected in the unique tool. Can you please check whether there is more than 1 ID which is satisfying the condition.

 

atcodedog05_0-1641315760922.png

 

tsilverman_
7 - Meteor

Yes there is one row. (MRN) is still blank however. And yes, MRN is in place of Key ID throughout workflow. 

atcodedog05
22 - Nova
22 - Nova

Hi @tsilverman_ 

 

Not sure :(. May need sample data with which you are facing issue.

Qiu
20 - Arcturus
20 - Arcturus

@tsilverman_ 
This error message indicates that you are having a data type mismatch at filter #20, which is not in the flow of @atcodedog05 .
Can you locate the filter#20, and check the data type before and after the "=".

you can Igore the two = signs, which is believed to be somehow internal operator of alteryx.

Capture1B.PNG

atcodedog05
22 - Nova
22 - Nova

Hi @tsilverman_ 

 

Try this method

 

Workflow:

atcodedog05_0-1641362900855.png

 

Hope this helps : )

 

tsilverman_
7 - Meteor

I like this approach, however. I am still getting a couple of errors. I wonder if my real data I am not using correct data types available. Can I make them have all V-string types?

Labels