We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Unique Combinations

bharathss
6 - Meteoroid

Hey Guys,

 

Have data in the following form:

Field 1Field 2
ThorThor
HulkHulk
Captain AmericaCaptain America
BatmanBatman
SupermanSuperman
FlashFlash

 

I want the final output to just be unique combinations - 

Field 1Field 2
ThorBatman
ThorSuperman
ThorFlash
ThorThor
ThorHulk
ThorCaptain America
HulkBatman
HulkSuperman
HulkFlash
HulkHulk
HulkCaptain America
Captain AmericaBatman
Captain AmericaSuperman
Captain AmericaFlash
Captain AmericaCaptain America
BatmanBatman
BatmanSuperman
BatmanFlash
SupermanSuperman
SupermanFlash
FlashFlash

 

Any help here is appreciated.

 

Thanks!

3 REPLIES 3
ShankerV
17 - Castor

Hi @bharathss

 

1. Use Record ID tool.

2. Split the dataset into 2 using select tool with Record ID and Feild1 in dataet1.

Dataset2 -> Record ID and Field2

3. Use append fields tool

4. Use the filter tool, [Source_RecordID] >= [RecordID]

5. Select tool to drop the unwanted columns.

 

ShankerV_0-1679059492087.png

 

You get the desired output. 

 

Many thanks

Shanker V

DataNath
17 - Castor
17 - Castor

Hey @bharathss, I believe this gets you what you're after - combos are there but superheroes may be in the opposite column to your example:

 

DataNath_0-1679057346293.png

gaoa
11 - Bolide

Hi @bharathss my solution (similar to solution 1):

gaoa_0-1679068837209.png

Labels
Top Solution Authors