community
cancel
Showing results for 
Search instead for 
Did you mean: 

Alteryx designer Discussions

Find answers, ask questions, and share expertise about Alteryx Designer.
Upgrade Alteryx Designer in 10 Steps

Debating whether or not to upgrade to the latest version of Alteryx Designer?

LEARN MORE
SOLVED

Data Preparation

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

Alteryx Certified Partner

Hi @Zaid

 

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

 

img.PNG

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

 

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