Field Name Contains Data in Middle of Workflow: Push Field Name Row Down (not Input tool)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi Everyone,
I have an Alteryx workflow where the data in the field name contains data, and so I need the field names to be pushed down into the first row. I then need the field names to be F1, F2, etc. after this is accomplished. I know in my attached workflow I could easily change the input tool to select "First Row Contains Data", but in my use case the data is structured this way after the input tool. I therefore can't use this solution.
Initial Data Structure:
Desire Output:
Does anyone have any tips on how to accomplish this? Attached is an Excel file of the data and a sample Alteryx workflow.
Thank you,
Paul
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @paulwini
Here's my solution. Isolate the 1st record(row), transpose, union, transpose in reverse order, re-union
Workflow package attached. Export to C:\Temp to test. Enjoy!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @paulwini ,
My take on this:
The problem you have is that the rename will remove the column headers rather than move them down, so a quick pivot and a generation of the new required headers gives you both. You then just need to pivot back and union:
I hope this helps.
M.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Incredible! Thank you both so much. Exactly what I needed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
