Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Convert Multiple Columns into Two

JAB95
7 - Meteor

Hi Alteryx Community,

 

I'm trying to convert a file with multiple columns of hierarchy data (each pair of columns is a different level in the hierarchy, a code and an alias) into just two columns - one with all of the codes and the next with the matching aliases.

 

Please see the attached file I mocked up, with an example input and output.

 

Any help would be greatly appreciated!

 

Thanks!

2 REPLIES 2
JosephSerpis
17 - Castor
17 - Castor

Hi @JAB95 I came up with an approach that pivots the data and then extracts the relevant information from the headers to help sort the data when I then use a crosstab to pivot the information into the format you provided. It uses Regex to extract the information from the headers before the data goes into the crosstab tool.

binuacs
20 - Arcturus

@JAB95 one way of doing this with 

Transpose the data and filter out based on the value 'Code' or 'Alias'

join with position

sort 

 

binuacs_0-1649946053572.png

 

Labels