SOLVED
Transposing Columns
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
dhakim1996
8 - Asteroid
‎09-19-2022
09:57 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi,
Does anyone know how to convert the following table:
Name | Cat 1 | Cat 2 | Cat 3 | Cat 4 |
A | 1 | 2 | 3 | 4 |
B | 5 | 6 | 7 | 8 |
into this:
Name | Cat | Amount |
A | Cat 1 | 1 |
A | Cat 2 | 2 |
A | Cat 3 | 3 |
A | Cat 4 | 4 |
B | Cat 1 | 5 |
B | Cat 2 | 6 |
B | Cat 3 | 7 |
B | Cat 4 | 8 |
Thank you in advance!
Solved! Go to Solution.
Labels:
- Labels:
- Transformation
2 REPLIES 2
17 - Castor
‎09-19-2022
10:37 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@dhakim1996 if you use a transpose tool and select Name as a Key Column that should do the trick. By default, Alteryx will name your transposed fields as ‘Name’ and ‘Value’ - as you already have a ‘Name’ column this second one will become ‘Name2’ and so you’ll need to use a Select tool or something afterwards to rename your columns as you wish.
Transpose like so:
Select after for rename:
binuacs
21 - Polaris
‎09-19-2022
11:06 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
