Join the Inspire AMA with Joshua Burkhow, March 31-April 4. Ask, share, and connect with the Alteryx community!

Alteryx Designer Desktop Discussions

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

Renaming a field when its respective name is stored in the next column to the right?

wtan
5 - Atom

I know the title might sound a bit confusing, so I'll share my workflow and try to explain more here.

 

In essence, I'm trying to flatten a nested XML into a table. I've managed to get it 90% there, the only problem left is that my field names are stored in another column. For example, "field" should have the field name "date", but "date" is stored in the next column to the right named "field_id". Similarly, "field_2" should be named "location" and "location" is stored in the column to the right ''field_2_id".

Screen Shot 2022-01-16 at 4.14.59 PM.png

I tried using cross-tab, but that didn't quite work out. A multi-field might need to be used, but I'm not too familiar with renaming columns with multi-field or if Alteryx supports column indexing.

 

If anyone has any tips, I'd greatly appreciate it. Thanks!

3 REPLIES 3
Qiu
21 - Polaris
21 - Polaris

@wtan 
I hope this works for your bigger data dynamically.

0117-wtan.PNG

wtan
5 - Atom

Thanks for the quick response. Works perfectly for my actual dataset!

Qiu
21 - Polaris
21 - Polaris

@wtan 
Glad to help and thank you for the accept mark. 

Labels
Top Solution Authors