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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
mcameron2909
Frequent Visitor

Create new rows from pivot columns retaining category and value fields

Hi all,

 

I have a requirement where we are importing list data from Sharepoint that has employee names as columns and this needs to be transformed to row values in our Power BI model to enable filtering and display.

 

Is it possible to process this with power query to achieve the following

Source table

TableBefore.png

 

Transform name columns to rows, retaining Category and Skill, repeated on additional rows created for each name

Transformed table

TableAfter.png

This is different to a straight table pivot in that some columns are pivoted, and some are kept as columns, with new rows created

 

This appears similar to the question and solution discussed here and response provided by @Greg_Deckler 

https://community.powerbi.com/t5/Desktop/Transpose-table-column-values/m-p/184083

however this doesn't appear to work with creating the additional rows required and retaining the Category and Skills values in the transformation above.

 

Many thanks for anyone who can assist!

 

Thanks,

Michael

1 ACCEPTED SOLUTION
mahoneypat
Microsoft Employee
Microsoft Employee

Just select your Category and Skill columns, right click and choose "Unpivot Other Columns" to get your result.

 

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

2 REPLIES 2
mahoneypat
Microsoft Employee
Microsoft Employee

Just select your Category and Skill columns, right click and choose "Unpivot Other Columns" to get your result.

 

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Thanks so much Pat, basic functionality that I've missed! Works as expected, cheers.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Top Kudoed Authors