Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Remove duplicated combinations

slinky123
7 - Meteor

Hi All,

 

I have the following data:

 

 

Product AProduct BCount
1234563
4561233
7895684
7891245
5687894
1247895

 

I want to be able to remove any duplicated combinations (i.e. Rows 1 and 2 are the same, just in reverse order): 123, 456 = 456, 123. The logic being that the same products are being sold with each other.

 

Therefore my target output looks  like this:

 

Product AProduct BCount
1234563
7895684
1247895

 

Any ideas?

 

Thanks in advance!

Scott

 

2 REPLIES 2
jasperlch
12 - Quasar

Hi, I think this will do:

 

Capture1.PNG

slinky123
7 - Meteor

Amazing! Thanks so much for the quick response! Works perfectly!

Labels
Top Solution Authors