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

Alteryx Designer Desktop Discussions

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

Dynamically split data into streams by columns

Biswarun
8 - Asteroid

My input data header is of the form:

ABCA_FLAGB_FLAGC_FLAG

 

  • There might be further pairs of column.
  • A, B, C etc. will vary based on the incoming data.
    • That is, the first thee column headers might be Country, City, and Village. The next three, Country_FLAG, City_FLAG, and Village_FLAG. So on.

I want my incoming data to be split into streams for each pair:

AA_FLAG

-----

BB_FLAG

-----

CC_FLAG

-----

So on....

1 REPLY 1
Ladarthure
14 - Magnetar
14 - Magnetar

Hi @Biswarun,

 

you can do this by first doing a transpose then transforming the headers you used to have into new headers easier to read and catégories. Then you can do a cross tab to have the data in the format you want.

 

Find attached an example workflow doing this trick, you may have to tweak it a bit if you end up having field names (other than flags) containing _

Labels
Top Solution Authors