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

Join multiple

AnGi
7 - Meteor

Hi guys

i have this situation

First file with a list of 50 names:

Name
Paul
John
Mark
Steve
Robert
Phil
Andrew
….

Second file a table with 200 column

Day 1Day 2Day 3Day 4Day ….
PaulMarkSteveMarkPaul
JohnPaulRobertSteveJohn
CamilleFrankLucyRobertMark
CecileSimon PhilSimon
   Andrew 
   Aldo 

I would like for each column in second file to remove names dont listed in file 1

 

Any suggestions?

1 REPLY 1
atcodedog05
22 - Nova
22 - Nova

Hi @AnGi 

 

Here is what you do.

 

Workflow:

atcodedog05_0-1622109591261.png

1. Using transpose i am converting columns of file 2 to rows.

2. Using join tool i am joining by name so that i get only the names that are present.

3. Using multi-row formula grouby Name(day) i am generating row number.

4. Using crosstab with row number as key, Right_Name(Day) as Name and value as value i am converting it back to table.

5. Dynamic rename to fix the column names.

 

Hope this helps 🙂

 

Labels