Transposing and adding a column
- 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. Can someone help me figure out how to accomplish something with transposing? It seems that the transpose tool is getting me partially there but I'm not sure how to do the second part.
I have data structured in columns and I want to pivot them to rows. Basically, I have a column for current year metric and another column for last years metric. I want to pivot the data so I have a column called "metric", "current value", "last year value".
But I don't want last years metric names added to the rows. I just want the values added to the last year column next to the corresponding metric name.
Hope this is making some sort of sense. The attached screenshot shows what I have and what I want to get to and might make things clearer.
Thanks in advance for taking the time to think about it.
Solved! Go to Solution.
- Labels:
- Datasets
- Developer
- Developer Tools
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hello @rkirschner
You can use something like the attached and with a join on both dates and Regions, you can get the second column - related to last year - added to the main dataset.
Hope that helps. Cheers!
- 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
Thanks @christine_assaad! That gives me exactly what I need.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@christine_assaad actually it looks like the last year sales metrics are being duplicated for profit.
- 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
That did it! Thanks again.
