Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

Comparing a column againt a list present in another column

harpreetdhillon
5 - Atom

HI,

 

I want to check if the value in one of my column matches againt the list of values present in another column of same data set an dpolupate result baed on comparion.

 The list is delimiter seperated.

 

Column1validList
0"0","1"
5"0","1"

 

output:

Column1validListresult
0"0","1"TRUE
5"0","1"FALSE

 

Thanks

4 REPLIES 4
Bahouth12
7 - Meteor

 

Hello,

 

I attached a solution to the question. I hope it answers your question.

 

Thanks

harpreetdhillon
5 - Atom

Thanks Bahouth12. The solution works. But do we have any other approach where we can accomplish this irrespective of the number of valid values.

 

LIke in my solution we had 2 valid values (0,1). what if the incoming data has 30 ?

 

 

Bahouth12
7 - Meteor

 

Hello harpreetdhillon,


I changed the solution a little bit to work well with any incoming data such as 30. Please see the attachment.
Thanks

harpreetdhillon
5 - Atom

Thanks bahouth12. This works!

Labels