Forum Discussion
How to transform column to remove duplicates
Hi Team,
I wanted to request your help as I want to do the following, I have a table such as this one:
| Name | Skill |
| Bob | Writing |
| Bob | Reading |
| Bob | Speaking |
What I want to do is to transform the table so that is provides the following result:
| Name | Skill 1 | Skill 2 | Skill 3 |
| Bob | Writing | Reading | Speaking |
I've been trying to pivot the column but it doesn't give me the correct result. Any ideas?.
Thanks!.
- Anonymous4 years ago
Here you go. You need to reference your skills as a new table, remove dups, add index and merge back to original table. Was going to share the PBIX file but it wont let me. This gif walks you through all the steps
ā
4 Replies
- AnonymousNot applicable
Here you go. You need to reference your skills as a new table, remove dups, add index and merge back to original table. Was going to share the PBIX file but it wont let me. This gif walks you through all the steps
ā
- fernandoCHelper V
Thanks Anonymous for the detailed explanation ;).
- HotChilliCommunity Champion
Add an Index, then Pivot the Index column (with 'do not aggregate' option)