SOLVED
Move rows to 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
BautistaC888
8 - Asteroid
‎07-26-2021
06:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hello,
I'm trying to move the rows with the same ID to columns. The output must have 1 row per ID.
I leave an example workflow.
Thank you.
Solved! Go to Solution.
Labels:
- Labels:
- Preparation
3 REPLIES 3
16 - Nebula
‎07-26-2021
06:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @BautistaC888 ,
I've tried to understand what you need but I need more context from you. What are you trying to achieve ?
22 - Nova
‎07-26-2021
06:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Here is how you can do it.
Workflow:
1. Using transpose to convert columns to rows.
2. Using multi-row formula tool to get repeated occurrence of the column for each ID.
3. Using formula for adding "2","3"...n suffix to the column name.
4. Using crosstab tool to convert it to table.
Hope this helps : )
17 - Castor
‎07-26-2021
06:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Here's an example of how you'd do this:
- Tile tool assigns a second ID to each ID (i.e. 12 has 3 records, so it assigns 1 2 and 3)
- Transpose by main ID and tile ID
- Rename columns to have 2 or 3 (or more in the future)
- Crosstab data back
You may want to rearrange the columns, but left it as is to demonstrate that it is working
