Hello all, I've been struggling with parsing some comma seperated values within columns imported to alteryx from a csv. The data pertains to a messaging site my company uses, and we want to know how many times different emojis are attached to messages within the messaging platfrom. So I have a table filled with data similar to the following row (ex) :
count
count | emoji | userID |
5,1,2 | tada,clap,sparkles | 1,2,3,4,5,1,1,6 |
That applies to one message. Somebody must have done something good....
So what this is saying is:
- 5 people used a 'tada' and their userIDs were 1,2,3,4,5
- 1 person used a 'clap' and their userID was 1
- 2 people used a 'sparkle' and their userIDs were 1,6
How I tried to approach this project:
- I used the 'Text to Columns' parsing tool and selected to split to rows rather than columns.
- This worked well for the 'count' and 'emojis' columns, but not the 'userID' column.
- As I'm sure you all have figured out by now, the parsing tool created rows for each of the userIDs... not what I wanted.
I am wondering if there is a way/ tool in alteryx that can be used to parse the userID column so that it creates a new row with (for example) the 5 userIDs who attached a 'tada' to a particular message, rather than a different row for each listed id # in the userID column. So, ideally my final output for the above example would appear as:
count | emoji | userID |
5 | tada | 1,2,3,4,5 |
1 | clap | 1 |
2 | sparkles | 1,6 |
Thanks in advance for the help!