Alteryx Designer Desktop Discussions

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

how to check if all values in a string is available in a list

toxicboy
6 - Meteoroid

I have a column id which I need to check if all values within that id per cell is available in another list of IDs

ex:

 

id
0786,0982,7923,A913
0389
0917,0982
7923,A913,0917

 

LIST

0786
0982
7923
0917

 

hence output will be:
1st id = FALSE, as A913 is not in list
2nd id = FALSE, as 0389 is not in list
3rd id = TRUE, as both 0917 and 0982 are in list
4th id = FALSE, as A913 is not in list

5 REPLIES 5
niklas_greilinger
9 - Comet

Here is one way of doing this. PLease let me know if this helps you.

rzdodson
12 - Quasar

@toxicboy here is another approach.

 

Solution.png

Qiu
21 - Polaris
21 - Polaris

@toxicboy 
We can also go with the approach below.

1209-toxicboy.png

flying008
14 - Magnetar

Hi, @toxicboy 

 

FYI.

录制_2023_12_12_08_49_55_650.gif

caltang
17 - Castor
17 - Castor

Another way:

 

image.png

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Labels