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

Append to one row at a time to cluster of rows

itahir04
8 - Asteroid

Hi team,

How do I append School, Admission Coloumn first with Joe, Then with Dan, soforth.

I am doing this by selecitng one row of student (i.e Joe, PA), then selecting two coloumns (School, Admission Status 1) and using append function.

But I have large data set, If I have 50 Students, I would have to select each row of student.

Can you please advise me an easy logic.

Sample data set:

Student NameState  
JoePA  
DanUT  
LeeCA  
    
SchoolAdmission Staus 1Admission Staus 2Admission Staus 3
HarvardAccept Status 1Reject Status 2 
MITReject Status 1Accept Status 2 
NJITAccept Status 1Reject Status 2 

Required out put:

 

SchoolAdmission SttausStudent NameState
HarvardAccept Status 1JoePA
MITReject Status 1JoePA
NJITAccept Status 1JoePA
HarvardReject Status 2DanUT
MITAccept Status 2DanUT
NJITReject Status 2DanUT
Harvard LeeCA
MIT LeeCA
NJIT LeeCA

 

Thanks,

 

4 REPLIES 4
Aaron_Harter
11 - Bolide

@itahir04 if you separate the data into two tables, one containing the school information and the other the student data, you can accomplish this with a Transpose and Append Fields tool:

1.PNG

itahir04
8 - Asteroid

Hi Harter,

That's the challenge.

In your data, you are appending each school with three students.

Status 1 is only for Joe

Status 2 is only for Dan

and blank is for Lee.

I can transpose and append, but I get results like yours,

My Out put should be:

SchoolAdmission SttausStudent NameState
HarvardAccept Status 1JoePA
MITReject Status 1JoePA
NJITAccept Status 1JoePA
HarvardReject Status 2DanUT
MITAccept Status 2DanUT
NJITReject Status 2DanUT
Harvard LeeCA
MIT LeeCA
NJIT LeeCA

or if I sort same table on school Asc:

SchoolAdmission SttausStudent NameState
HarvardAccept Status 1JoePA
HarvardReject Status 2DanUT
Harvard LeeCA
MITReject Status 1JoePA
MITAccept Status 2DanUT
MIT LeeCA
NJITAccept Status 1JoePA
NJITReject Status 2DanUT
NJIT LeeCA

 

I am not sure how to achieve that.

 

Thanks,

Rana

 

Aaron_Harter
11 - Bolide

@itahir04 Rana, thanks for specifying that the status # corresponds to the position of the student in the student table.  You can assign a record ID, then use a formula to create a string that will match to the other table in the Join:

2.PNG

itahir04
8 - Asteroid

Thank you so much, Very very helpful.

Regards,

Rana

Labels