Hi All,
I have a problem I'm trying to solve. I have a that has created multiple lines of data based on the sales order and want to concatenate them together so I can match on a 1:1 sales order basis with another file. I've included an example data set below. Is this possible and if so, how would I do this at scale (considering my actual file is 50+ columns of data):
Input:
| Sales Order | Country | Product | Service |
| 1 | USA | First | 1 |
| 1 | USA | First | 2 |
| 1 | Belgium | Second | 1 |
| 1 | France | Third | 1 |
| 1 | United Kingdom | Fourth | 1 |
| 2 | USA | First | 1 |
| 2 | USA | First | 2 |
| 2 | Belgium | Second | 1 |
| 2 | France | Third | 1 |
| 2 | United Kingdom | Fourth | 1 |
| 3 | USA | First | 1 |
| 3 | Belgium | Second | 1 |
| 3 | France | Third | 1 |
| 3 | United Kingdom | Fourth | 1 |
| 4 | USA | First | 1 |
| 4 | Belgium | Second | 1 |
| 4 | France | Third | 1 |
| 4 | United Kingdom | Fourth | 1 |
Output
| Sales Order | Country | Product | Service |
| 1 | USA, Belgium, France, United Kingdom | First, Second, Third, Fourth | 1, 2 |
| 2 | USA, Belgium, France, United Kingdom | First, Second, Third, Fourth | 1, 2 |
| 3 | USA, Belgium, France, United Kingdom | First, Second, Third, Fourth | 1 |
| 4 | USA, Belgium, France, United Kingdom | First, Second, Third, Fourth | 1 |