How to transform this table?
- 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
Just now I saw a question regarding table transformation in an Excel user forum,It's just a sample,actually there are five different stages and hundreds of fields (A,B,C...X,Y,Z...) in the table,I wonder if it is possible to transform the table automatically in Alteryx.
Solved! Go to Solution.
- Labels:
- Preparation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@sparksun not an exact 1-2-1 replica of what you want but a good starting point
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
hi @sparksun
Solution by @aatalai perfectly meets your demand, but let me ask some question.
If you have hundreds of fields, A,B,C...X,Y,Z...as you wrote, output table will look like this. Table will be long in horizontal direction.
Instead, as another approach, you can use "Stage" as a header of output table, that would look like this. Table will be long in vertical direction.
The advantage of this style is that you always have the same number of column(=static schema), while in the previous style number of column is dynamic depending on A,B,C...X,Y,Z..(=dynamic schema)
For your reference, I prepared my WF to simulate the above two patterns so please see which looks/fits better to your task.
*Please note that the above statements is based on my assumption that "stage" always has static value like"stage1" and "stage2".
