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
Id | Name | Surname |
1 | Zaid | Hashim |
2 | John | Cena |
3 | Maxwell | |
4 | Ross | |
5 | Will | Smith |
The desired output that i m looking for is:
Id | Name |
1 | Zaid |
1 | Hashim |
2 | John |
2 | Cena |
3 | Maxwell |
4 | Ross |
5 | Will |
5 | Smith |
Hope the requirement is clear. Looking forward to a reply.
Thanks
Solved! Go to Solution.
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
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
User | Count |
---|---|
17 | |
15 | |
15 | |
8 | |
6 |