Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 10 | |
| 6 | |
| 5 | |
| 5 | |
| 3 |