Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Splitting Data by Dynamic Column Contains Reference

mmvcans
7 - Meteor

Hi all!

 

I have data as follows:

 

periodxxxyyyzzz
 abcabcabc
1[data][data][data][data][data][data][data][data][data]
2[data][data][data][data][data][data][data][data][data]
3[data][data][data][data][data][data][data][data][data]

 

I need a method for bucketing the fields based on the first column header (x, y, and z) and then sub-header (a, b, and c). 

 

The workflow needs to be dynamic by referencing the header and sub-header to work across sheets with different number of columns. The end goal is to put this into an iterative macro to get data into standard format, by period, prior to analysis where the data would look something like:

 

periodheadersub-headerdata
1xa[data]
1xb[data]
1xc[data]
1ya[data]
1yb[data]
1yc[data]
1za[data]
1zb[data]
1zc[data]

 

I'm struggling to manipulate the transpose tool to create a dynamic reference and wondering if there are better solutions out there.

 

Thanks!

 

Mike

1 REPLY 1
fmvizcaino
17 - Castor
17 - Castor

Hi @mmvcans ,

 

Since Alteryx has not the ability to manipulate 2 row header, we need to split it into 2 separate cases to accomplish what you are looking for. 

If you are using an input data tool to load your data, select the option to turn 1 rows into data instead of headers.

fmvizcaino_0-1592938885101.png

 

 

Best,

Fernando Vizcaino

Labels