Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Transpose Based on Field Name

bjschwartz3
8 - Asteroid

I have a file where the file is formatted like:

 

Category1/Source1/Category1/Value1/Category1/Source2/Category1/Value2/Category2/Source1/Category2/Value1/Category2/Source2/Category2/Value2/Category2/Source3/Category2/Value3/
Source1Value1Source2Value2Source1Value1Source2Value2Source3Value3

 

And I want to transform the data to look like:

 

CategorySourceValue
1Source1Value1
1Source2Value2
2Source1Value1
2Source2Value2
2Source3Value3

 

I'm completely lost on the logic for this. Any help would be greatly appreciated.

 

Thanks!

3 REPLIES 3
afv2688
16 - Nebula
16 - Nebula

Hello @bjschwartz3 ,

 

Try this:

 

Untitled.png

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Regards

bjschwartz3
8 - Asteroid

**bleep**, that worked and you came up with it so fast. Thanks!

afv2688
16 - Nebula
16 - Nebula

Happy to help 🙂

 

Developed a second solution that may be more useful. This will work always as lon as the chain goes Source-Value etc.

 

Untitled.png

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Regards

Labels
Top Solution Authors