Free Trial

Alteryx Designer Desktop Discussions

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

Data Preparation

Zaid
8 - Asteroid

Hi All,

 

There is a scenario which needs to be converted into an Alteryx workflow. The requirement is such that not all Names have Surnames, but in instances where there are names having surnames, the surnames should come up as names in the next row. PLease see the input and desired output below:

 

The input is 

IdNameSurname
1ZaidHashim
2John Cena
3Maxwell 
4Ross 
5WillSmith

 

The desired output that i m looking for is:

 

IdName
1Zaid
1Hashim
2John
2Cena
3Maxwell
4Ross
5Will
5Smith

 

Hope the requirement is clear. Looking forward to a reply.

 

Thanks

3 REPLIES 3
Thableaus
17 - Castor
17 - Castor

Hi @Zaid

 

Here's the solution that I thought. WF appended.

 

img.PNG

clant
8 - Asteroid

Hi Zaid,

 

You need to use the transpose tool for this one. You just want to select ID as your key field. After that use a select to remove the Name column and filter for not nulls on your values.

 

cheers

 

chris

 

robg1409
6 - Meteoroid

Hi Zaid

 

Yes - the transpose solution is the best way to go with this one - you'll have the option of having a Name / Surname column in there as well to use, might come in handy later on in your data prep.

 

The transpose tool is really useful for manipulating data, I would definitely recommended exploring it more in your workflows.  You can always cross tab data back if needs be.

 

Cheers

 

Rob

 

transpose.PNG

 

 

Labels
Top Solution Authors