Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I have a data sample from excel that is in the following format:
| Name | Column 2 | Column 3 | Column 4 | Column 5 |
| Harry | Pig | Null | Null | Null |
| James | Apple Pie | Cat | Tom Ford | Ferrari |
| Stella | Dog | Gucci | Lasagna | |
| Micheal | Corolla | Null | Fendi | Goat Curry |
How do i rearrange this data set into the following format in power query. Assuming the names are all unique values.
| Name | Pet | Favourite_Food | Favourite_Designer | Car |
| James | Cat | Apple Pie | Tom Ford | Ferrari |
| Stella | Dog | Lasagna | Gucci | |
| Harry | Pig | Null | Null | |
| MicheaL | Null | Goat Curry | Fendi | Corolla |
Solved! Go to Solution.
You'll need to create a translation table so you can look up an item and figure out the category (car, pet, designer, food). Then it's a matter of unpivoting; joining; and pivoting to get your desired output.
You'll need to create a translation table so you can look up an item and figure out the category (car, pet, designer, food). Then it's a matter of unpivoting; joining; and pivoting to get your desired output.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.