Alteryx Designer Desktop Discussions

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

Compare values in two columns with commas

Santhoshraj
6 - Meteoroid

Hi , I have a sample table like this :

 

SupplierBasePrev_PackagersNew_Packagers
AAAA1234A1,B1,C1A1,B1
BBBB1345V1Z1
CCCC5431A2,B2B3,G3
DDDD3451F4F4

 

For each Supplier-Base, i want to filter only the rows where there is no match between prev and new packagers.

 

Output must be something like this: 

SupplierBasePrev_PackagersNew_Packagers
BBBB1345V1Z1
CCCC5431A2,B2B3,G3

 

How to get this done?

4 REPLIES 4
Carolyn
9 - Comet

I'm really curious to see what others suggest... What I would do:

 

1) Split both Prev and New Packagers to row, using the comma delimiter

2) Add a filter for where Prev != New

3) Using the False output, which means they are the same, Join with the original data

4) The J output anchor will show lines where there are dupes (if you want to use that output, just add a Unique Tool on there)

5) Use the right output which would mean there were not any dupes

 

Packagers.png

HomesickSurfer
12 - Quasar

Hi @Santhoshraj 

 

 

Split to rows, filter: , Summarize, Group By Supplier

 

 

!Contains([Prev_Packagers],[New_Packagers])

 

 

Carolyn
9 - Comet

@HomesickSurfer - Much cleaner than mine :D 

Santhoshraj
6 - Meteoroid

Thanks a lot for the help both. @Carolyn @HomesickSurfer . 

Labels