Free Trial

Alteryx Designer Desktop Discussions

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

Find integer in a group of integers

BonusCup
11 - Bolide

Hi,  I'm trying to filter for records where the integer is found in a group of integers like below.

 

JSON_Name1Concat_JSON_Name1Filter
03,18,28,30,33,40,42,49,51,54,55,68,70,73,76,81,83,89,94,96,97,98,99,100OUT
103,18,28,30,33,40,42,49,51,54,55,68,70,73,76,81,83,89,94,96,97,98,99,100OUT
183,18,28,30,33,40,42,49,51,54,55,68,70,73,76,81,83,89,94,96,97,98,99,100IN
323,18,28,30,33,40,42,49,51,54,55,68,70,73,76,81,83,89,94,96,97,98,99,100OUT
423,18,28,30,33,40,42,49,51,54,55,68,70,73,76,81,83,89,94,96,97,98,99,100IN
803,18,28,30,33,40,42,49,51,54,55,68,70,73,76,81,83,89,94,96,97,98,99,100OUT
893,18,28,30,33,40,42,49,51,54,55,68,70,73,76,81,83,89,94,96,97,98,99,100IN
1013,18,28,30,33,40,42,49,51,54,55,68,70,73,76,81,83,89,94,96,97,98,99,100OUT

 

I've tried Contains([Concat_JSON_Name1],[JSON_Name1]) but everything still comes across.  TIA

5 REPLIES 5
alexnajm
17 - Castor
17 - Castor

How about this? 

BonusCup
11 - Bolide

@alexnajm thanks, that worked.

jareds
5 - Atom

I am not sure if I completely understand your question, but could you not just use the following formula?

I have attached a file that also includes a Filter Tool Version.

 

IF Contains([Concat_JSON_Name1],ToString([JSON_Name1], 0)) THEN "IN" ELSE "OUT" ENDIF

 

All the best!
Jared

alexnajm
17 - Castor
17 - Castor

Fantastic @BonusCup !

 

@jareds it doesn’t work for instances like 100 technically containing 10

BonusCup
11 - Bolide

Yes, that was the issue I was having

 

Labels
Top Solution Authors