Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

The quickest way to find out discrepancies between two columns

187
8 - Asteroid

I have data set like below

IDCOL ACOL B
1AAABBB
2BBBCCC
3CCCZZZ
4DDDFFF

 

I want the delete the line that if COL A value exist in COL B or  COL B value exist in COL A

so for ID 1  BBB existed in Col A  so it is deleted. for ID 2 BBB existed in COL B deleted. ID 3 CCC existed in Col B so it is deleted.

the result i want is only  

4DDDFFF

 

what is the quickest way to implement this?

4 REPLIES 4
Qiu
21 - Polaris
21 - Polaris

@187 
Not sure it is the fastest but it should work. 1109-187.PNG

 

187
8 - Asteroid

Thanks for your quick solution, what if the first column ID is not unique? i saw you use join here 

AZuc
Alteryx Alumni (Retired)

@187 

 

If ID is not Unique then add a Record ID tool before Transposing and use this key in the final join.

 

 

André Zuccatti

Sales Engineer - LATAM -
Alteryx, Inc.


AZuc
Alteryx Alumni (Retired)

@187 

 

I've built this approach here to practice a little bit on Make Group tool. I'm not sure how it will work with more data. It needs further testing.

AZuc_1-1636460464996.png

 

André Zuccatti

Sales Engineer - LATAM -
Alteryx, Inc.


Labels