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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hello,
I had posted about this topic earlier but I realized that while the Power Query solution works, it's not ideal for large data sets. My .pbix file keeps crashing so I am hoping I can solve this with Python. Here is the link to the earlier post with screenshots of my data and how it should look: https://community.powerbi.com/t5/Desktop/Unpivoting-with-Multi-Header-Columns/m-p/886699#M425018
I'm hoping to get my data set to transpose/pivot/unpivot with Python. Alternatively, what could be the best way to address this problem.
Thank you in advance for your help!
Solved! Go to Solution.
Hi @Anonymous ,
You could try melt() function in Python.
Here is the link for your reference.
https://dfrieds.com/data-analysis/melt-unpivot-python-pandas
Hi @Anonymous ,
You could try melt() function in Python.
Here is the link for your reference.
https://dfrieds.com/data-analysis/melt-unpivot-python-pandas
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 64 | |
| 51 | |
| 46 | |
| 23 | |
| 19 |
| User | Count |
|---|---|
| 139 | |
| 112 | |
| 51 | |
| 33 | |
| 29 |