how to convert horizontal data table to vertical when there are duplicate head values
- 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
hello,
i need help to convert horizontal data to vertical. currently i have the some headers are the same values and when i tried to do a compose and cross tool it group the headers together. so here are the data and i want it to look like this. I need help.
Solved! Go to Solution.
- Labels:
- Workflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi there @wzhu717
The trick here is add a record ID and then use this as a key field in the Transpose and as the Column Headers field in the Cross Tab
Input
Output
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
thanks, i tried to that way but then it starts to skipping rows.here is what it looks like.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
You have on your workflow a sample tool. Maybe that is the reason for rows being skipped
cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @wzhu717
Does your input data have holes in the first column? Have you tried my workflow on your data?
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
yes i tried your method. all i want to do is flipping the entire data to vertical so i can do a dynamic select after that base on the Name. the reason i used a sample tool its because there are data in the first 4 rows i dont need to be included.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
After looking at your image more closely I see what is happening. The Crosstab tool sorts the rows alphabetically. This isn't a problem if you have less than 10 rows but with more than that you have the order F1, F10, F2, F3, etc, since F10 comes before F2 alphabetically. This new version builds a row number field and uses that to order the rows. You shouldn't have any skipped rows now.
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
this is what i am looking for. thank you so much Dan. much appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @wzhu717
Glad to help. Since this is what you're looking for please consider marking this solution as accepted. This will help people to find a solution to similar problems that they may have in the future
Dan
