Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

Transpose double header with empty fields

DADE
7 - Meteor

I have data which is in the following format, and I have been searching for hours now how to transform it into the correct format, and I can't seem to find the correct answer.

 

I have the following table 

 

 AANULLNULLNULLNULLBBNULLNULLNULLNULL
 2019202020212022NULL2019202020212022NULL
1890138NULL6520NULL

2

50050946NULL1852NULL
3205589NULL6846NULL

 

And I simply need to convert it to 

NumberYearNameValue
12019AA

8

22019AA500
32019AA205
12020AA901
22020AA509
............

 

And so on. I tried all sorts of transposing and crosstabs and even the arrange tool, but I cant seem to find a correct solution. Please help.

3 REPLIES 3
AbhilashR
15 - Aurora
15 - Aurora

Hi @DADE, take a look at the approach in the attached solution. It replicates the output you are looking for. Run it across your larger dataset and let us know if you run into any challenges.

AbhilashR_0-1590948650664.png

 

 

DADE
7 - Meteor

works like a charm! Thanks

RobertOdera
13 - Pulsar

Hi, @DADE 

 

This should take care of it for you.

Please mark as an acceptable solution + like, if it works for you.

 

RNO2_0-1590956315668.png

The workflow is attached.

Cheers!

Labels