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.

Dynamically Splitting Data in Rows into Columns based on a unique identifier

WishIKnewHowToCode
8 - Asteroid

For once I can actually share my example file (alteryx help) because there's no protected info. Although I did dummy a few fields to be safe.

I have this incredibly long output file with over 200 columns. Each row is data for a different facility. Their Unique Identifier is in column 2.

I want to split this data out by identifier, and then hopefully transform it into more manageable chunks, but I also don't know how to do that. I attached an example of what I want it to look like as well. The example is limited, it obviously doesn't capture every field, but I just wanted to demonstrate how I wanted to break up the file into more manageable chunks.

The data I work with is usually cleaner, but this is the output I'm given. If anyone has a way to approach this, I'm all ears. Do I need to format my data before running it through the workflow somehow? Or can alteryx handle all of this so once the process is automated, we can just drag and drop these outputs and get the desired result?

7 REPLIES 7
Qiu
21 - Polaris
21 - Polaris

@WishIKnewHowToCode 
Can you help me connect your input data with the output format?

What would be the "Value1", "Value2"...?
And what is "Line1" conresponding to your input data?

2024-05-08 172255.png

 

 

 

Raj
16 - Nebula

@WishIKnewHowToCode 
please find attached
hope this helps.

WishIKnewHowToCode
8 - Asteroid

Sorry, I probably oversimplified my examples. The below would be part of the example for Line 1 and values 1-5. L1 being line 1, and C2-6 being column 2-6. Since I'm not including column 1, 2-6 would be values 1-5 if that makes sense. This starts at Column AR in the excel file.

These are just values for Line 1, that need to be split out by facility as mentioned earlier. It's a pretty complicated workflow (to me anyway).

S-3 Part II L1.00 C2.00S-3 Part II L1.00 C3.00S-3 Part II L1.00 C4.00S-3 Part II L1.00 C5.00S-3 Part II L1.00 C6.00
57602612 576026121608593.435.81
30352798 30352798813777.237.3
277981685 277981685771674536.02
35086931 35086931953681.736.79
30012921 3001292169642343.1
38815228 3881522890207043.03
71040289 71040289204119334.8
392893666 3928936661084159436.24
95904801 959048012676610.635.83
34994609 3499460995691636.57
34661360 3466136091710237.79
WishIKnewHowToCode
8 - Asteroid

The part I'm struggling with currently is how can I split out my facilities based on their unique identifiers without having to put a manual filter in for each facility? This will be used on many many different facilities and to add the filters in every time is a step I want to skip. Current workflow progress is attached.

 

 

 

WishIKnewHowToCode
8 - Asteroid

@Qiu Was any of what I provided helpful? Sorry I'm still stuck on this.

WishIKnewHowToCode
8 - Asteroid

Also trying to figure out if maybe a Table tool is what I want so that I can arrange the data in manageable chunks

Qiu
21 - Polaris
21 - Polaris

@WishIKnewHowToCode 
It seems that we are on the same track of starting point.

Though I used the Regex to parse the "Line" and "Column" and it appears to be duplicated "Lines".

0508-WishIKnewHowToCode.png

Labels