I have a data set that I am looking at ... 3 columns that have name
, store
, and amount
.... looks like this
name store amount
John Doe Target 150
Now the trick is this John Doe
may be in the file again but with this data
name store amount
John Doe Walmart 50
I want to summarize and ADD new columns for all of John Doe's activity like the following:
name store A amount A store B amount B
John Doe Target 150 Walmart 50
- I have tried
transpose
andddlyr
but am not having any luck. - I have tried transpose and group by but it seems like you can't group by multiple columns
Thanks for your help...