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.
SOLVED

Remove Reciprocal data rows

RachRoberts
5 - Atom

Hi there,

 

I've been grappling with a problem all afternoon and wonder if someone might be able to help me.

 

I have data for person relationships where there is a 'duplicate' entry of the reciprocal data row in my file.

 

Person IDRelationshipRelated Person IDReciprocal Relationship
123Parent456Child
456Child123Parent
789Advisor888Advisee
888Advisee789Advisor

 

I need the relationship between Person ID 123 and 456 to appear only once, and the same goes for the relationship between 888 and 789.

 

The problem is that I don't have a way (currently!) to order them as the records are shown here.  If I could, then the solution would be relatively simple, e.g. using the Multi-Row Formula tool.

 

Can anyone help me?

 

Any advice would be greatly appreciated!

 

Rachel

5 REPLIES 5
atcodedog05
22 - Nova
22 - Nova

Hi @RachRoberts 

 

Here is how you can do it.

Workflow:

atcodedog05_0-1642701369276.png

 

Hope this helps : )

 

BrandonB
Alteryx
Alteryx

I think this should do it for you: 

 

BrandonB_0-1642701448014.png

 

Workflow attached

BrandonB
Alteryx
Alteryx

@atcodedog05 amazing solution! I created my key via transpose/sort/concat, but yours is the same concept just way more elegant. 

RachRoberts
5 - Atom

Thank you so much!  Goodness knows why I couldn't work that out - a HUGE help to a tired brain, thanks again :)

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @RachRoberts 

If my response helps please don't forget to mark it as solution.

Cheers and have a nice day!

Labels
Top Solution Authors