Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Alteryx Multiple Look Ups

Tyler_
6 - Meteoroid

Hello Alteryx Community,

 

I have a problem that has left me stumped and I am hoping someone here has the insight to overcome it. My data in its simplest form resembles the following:

 

Data
Project IDGroup IDName
Project A123Bob
Project B234Jane
Project C345Peter
Project D456Barb
Project E567Luke
Project F678Dave
Project G789Sarah
Project H890Julie

 

I have a data file that has multiple Group IDs and the name of a user currently assigned to that group. I need to return many combinations of names depending on their group number to show a hierarchy. However, while the Group ID's will remain static from a logic perspective, the names will change. Therefore, I need to have an output that looks like Bob, Jane, Peter but is tied to Group ID 123, 234, 345 so that if Jane is replaced with Alex tomorrow, the output would then automatically change to look like Bob, Alex, Peter with Alex being the name associated with Group 234. I will have close to a hundred of these combinations but the output would need to look something similar to:

 

OutputLogic
New ColumnNew Column
Jane, Barb, SarahOption 1 - Name of Group ID 234, Name of Group ID 456, Name of Group ID 789
Luke, BobOption 2 - Name of Group ID 567, Name of Group ID 123
Luke, Dave, Jane, JulieOption 3 - Name of Group ID 567, Name of Group ID 678, Name of Group ID 234, Name of Group ID 890
Dave, Peter, BarbOption 4 - Name of Group ID 678, Name of Group ID 345, Name of Group ID 456
 etc.

 

Where the Output column is what the data output would look like but it is driven by the Logic so that if Names change they will maintain the display based on the new names associated with the Group ID's. Based on my research this likely involves Join tools but I cannot figure out the right combination to generate the desired outcome.

 

Any help would be greatly appreciated.

 

Tyler

4 REPLIES 4
WernerE
8 - Asteroid

.

Hi Tyler, 

 

Hoping I understood your issue correctly, the attached build should allow you to set the column logic and run a similar file as your first image which should give you the new column breakdown as per the logic. 

 

Let me know if this is what you were looking for. 

 

 

Tyler_
6 - Meteoroid

Hi Werner,

 

Yes, that appears to be what I was looking for.

 

Quick follow up question, what would I need to change to have the logic simply read "234, 567, 789" etc. instead of "Group 1 - Name of Group ID 234, Name of Group ID 567, " etc.? I noticed that you had used the RegEx tool to parse out the numbers but I have never used that tool before and it throws an error if I use anything except that text for the logic instead of a string of numbers separated by commas. If you can help me there I believe I am set.

WernerE
8 - Asteroid

Hi Tyler,

 

I've updated the flow to give you two flows so you can pick which one works for you. I've also included details on how the Regex code works so hopefully it helps you see how it used the code to extract only what you want.  

 

Feel free to let me know if you have any other questions.

 

Tyler_
6 - Meteoroid

Hi Werner,

 

That was immensely helpful! Thank you very much for both the detail and explanation, it is appreciated. This should give me everything that I need now.

 

Hope you stay safe in this strange year.

Labels