The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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.
Solved! Go to Solution.
Starting Table
Highlight "Person Role" column and choose 'Pivot Column' option - Choose 'Person Name' as values option, and in Advanced Options - Don't Aggregate
Result
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
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.
Starting Table
Highlight "Person Role" column and choose 'Pivot Column' option - Choose 'Person Name' as values option, and in Advanced Options - Don't Aggregate
Result