Alteryx Designer Desktop Discussions

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

Convert col to rows

videet
8 - Asteroid

I have input table as below i want it to be converted in output table format.

I tried to use cross

 

Input table

Name Value
ID1
Phone123
Addabc
ID2
Phone456
Addxyz
ID3
Phone789
Addxyz

 

 

Output

IDPhoneAdd
1123abc
2456xyz
3789xyz
3 REPLIES 3
KarolinaRoza
11 - Bolide

Hi @videet ,

 

This was tricky 🙂 but hopefully I hope my simple workflow provides you what you need.

To use Cross Tab tool, firstly you need to assign unique value for each group of columns (1 -> ID: 1, Add: abc, Phone: 123, 2-> ID: 2 etc.)

 

KarolinaRoza_0-1625222479490.png

 

 

Regards,

Karolina

atcodedog05
22 - Nova
22 - Nova

Hi @videet 

 

Here is how you can do it.

 

Workflow:

atcodedog05_0-1625222430083.png

1. Using multi-row formula tool I am creating groups. A new group starts on each occurrence of ID in Name. Each group is identified by key column row

2. Crosstab using row as key, name as name and value as value.

 

Hope this helps 🙂

 

videet
8 - Asteroid

@atcodedog05 @KarolinaRoza 

Thanks a lot guys!!

Labels