Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
fernandoC
Helper V
Helper V

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:

 

NameSkill
BobWriting
BobReading
BobSpeaking

 

What I want to do is to transform the table so that is provides the following result:

NameSkill 1Skill 2Skill 3
BobWritingReadingSpeaking

 

I've been trying to pivot the column but it doesn't give me the correct result. Any ideas?.

 

Thanks!. 

1 ACCEPTED SOLUTION
Anonymous
Not 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

 

 

pivotcolumns.gif

View solution in original post

4 REPLIES 4
Anonymous
Not 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

 

 

pivotcolumns.gif

Thanks @Anonymous for the detailed explanation ;). 

HotChilli
Super User
Super User

Add an Index, then Pivot the Index column (with 'do not aggregate' option)

Hi @HotChilli 

 

Thank you for your response. 

 

I've created the index column and pivoted with the values from 'Skills', however, it's not providing the desired result. Maybe I'm missing a step.

 

Thank you for your help on this!. 

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.