Hi,
Looking for some help!
I have an input excel file with contact information. A contact appears many times and can have multiple roles. I need to make the list of reps distinct and then need to flatten the multiple roles into single row per contact. Need to have all the roles separated by a comma in one row per contact. I tried this logic using group by and cross tab tool but not sure about the column headers and values for new columns field in crosstab tool. Any help on this would be great. Thank you in advance!
Input
Name Phone Email Role
Bob Smith 1234 bob.smith@abc.com Manager
Bob Smith 1234 bob.smith@abc.com Branch Head
Bob Smith 1234 bob.smith@abc.com Market Head
David Williams 5678 david.williams@xyz.com Assistant
David Williams 5678 david.williams@xyz.com Market Head
Desired Output
Name Phone Email Role(New Column)
Bob Smith 1234 bob.smith@abc.com Manager,Branch Head,Market Head
David Williams 5678 david.williams@xyz.com Assistant,Market Head