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.

Assigning Random Number to a Data Set to Form Pairs with Conditions

AbigailShaw
6 - Meteoroid

Hi all, 

 

I have a list of names and I am trying to match them into pairs. 

 

I have managed to assign each person a Record ID and used the ceil formula so the Record ID goes 1 1 2 2 3 3 etc putting the individuals in pairs like below:

 

NameTeamRecord ID
AmyA1
SarahB1
JohnC2
KateD2
JamesE3
PaulF3
DeanG4
GraceA4
HarveyB5
JasonC5
LizD6
AbbyE6
MattF7
JoeG7

 

Please can someone advise on how I can create another column titled 'Match' where the name of the person with the same Record ID as them shows in the match column?

 

I will be matching individuals monthly so I would like to add in a condition that two individuals cannot be matched again based on another input of match history.

I would also like to add in a second condition that individuals can't be matched if they are in the same team. 

 

I hope this makes sense, any advice would be greatly appreciated!

3 REPLIES 3
DawnDuong
13 - Pulsar
13 - Pulsar

hi @AbigailShaw,

Trying to make sure that i get the problem statement right. Is the RecordID something that will need to refresh every month within (i.e. this needs to be dynamically worked out based on a number of criteria) or outside Alteryx (i.e. you manually matched prior loading the data to Alteryx)? 

Dawn.

lwolfie
11 - Bolide

Not sure if you ever received an answer on this.  But I think an arrange tool with an append and filter would work here.  

 

Or a Join and Filter, as I think more about it.

dreldrel
8 - Asteroid

You should be able to use the Join tool either to match your data or to exclude the matched records

Labels
Top Solution Authors