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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
seanrm42
Frequent Visitor

Transform Column to Columns to Remove Duplicate Unique_IDs in the Reporting

I need to tranform my data into a better structure for reporting but am unable to figure out so am reaching out for help.

 

I have the following data structure:

 

ID        Person_Role           Person_Name

1         Used By                  User_1

1         Managed By           Manager_1

1         Supported By         Supporter_1

2         Used By                  User_2

2         Supported By         Supporter_2

3         Used By                  User_3

3         Managed By           Manager_2

3         Supported By         Supporter_3

4         Managed By           Manager_3

4         Supported By         Supporter_4

5         Used By                  User_4

5         Managed By           Manager_4

6         Supported By         Supporter_5

 

I need to transform it to the following format:

 

ID        Used By         Supported By         Managed By

1         User_1            Supporter_1           Manager_1

2         User_2            Supporter_2           

3         User_3            Supporter_3           Manager_2

4                                Supporter_4           Manager_3

5         User_4                                           Manager_4

6                                Supporter_5

 

All help is greatly appreciated.

 

1 ACCEPTED SOLUTION
anktaggrwl
Helper II
Helper II

 

 Starting TableStarting Table

 

 

Highlight "Person Role" column and choose 'Pivot Column' option - Choose 'Person Name' as values option, and in Advanced Options - Don't AggregateHighlight "Person Role" column and choose 'Pivot Column' option - Choose 'Person Name' as values option, and in Advanced Options - Don't Aggregate

 

 

ResultResult

 

 

View solution in original post

4 REPLIES 4
v-yulgu-msft
Employee
Employee

Hi @seanrm42,

 

Have you achieved your requirement? If yes, would you please mark the corresponding reply as an answer or share your solution so that it can benefit more users?

 

Regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

The post already has "Solved" on it and a link to click to the solution. Am I missing something?

Yes. Summer has gone and it's almost winter now. At least on the Northern Hemisphere.

Specializing in Power Query Formula Language (M)
anktaggrwl
Helper II
Helper II

 

 Starting TableStarting Table

 

 

Highlight "Person Role" column and choose 'Pivot Column' option - Choose 'Person Name' as values option, and in Advanced Options - Don't AggregateHighlight "Person Role" column and choose 'Pivot Column' option - Choose 'Person Name' as values option, and in Advanced Options - Don't Aggregate

 

 

ResultResult

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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