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
Hi,
I'm the beginner user of Power BI and I need help in optimisation of Power Query transformations as these arised to be so heavy that don’t allow for smooth work.
As a source I have an Excel file with market data which I download from supplier system. The data looks as follows:
I could download the data in expected layout (where years and months are included in two columns as variables and volumes and values in two separated columns) but unfortunately such layout exceeds 1 million rows.
Format of text file or Excel (the only possible options) don’t allow for such range.
Connection directly to supplier system is not an option.
Therefore to achieve expected layout in Power Query I applied below steps:
This last step is the most overloading for memory and takes several dozen of minutes. Sometimes process of calculation / conversion of mentioned data simply don’t finish.
Do I have to reconsider Azure SQL to store transformed data?
Maybe the DAX Studio allows for more optimized transformation?
Any other solutions are welcomed 🙂
Hard to troubleshoot w/o seeing your data and query. But here is one article that show another way to deal with the vol and val columns instead of unpivoting/repivoting. You might be able to adapt the Repeating Columns example, but it requires some basic M knowledge of creating Records and Lists.
Faster Data Transformations with List/Record M Functions - YouTube
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Hi Pat,
I really apologise that I'm responding so late.
It's because I found some solution on differet forum, which met my expectations in most.
Nevertheless I'll also look at Yours carefully.
By the way I wanted to paste here some sample table as You wished but I faced an error with HTML.
Hi @Anonymous ,
It's because I found some solution on differet forum, which met my expectations in most.
Could you share us the solutions?
By the way I wanted to paste here some sample table as You wished but I faced an error with HTML.
You can refer to this post to provide sample data: How to provide sample data in the Power BI Forum - Microsoft Power BI Community.
Best Regards,
Icey
Hi @Anonymous ,
Any sharing?
Best Regards,
Icey
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 41 | |
| 38 | |
| 36 | |
| 31 | |
| 28 |
| User | Count |
|---|---|
| 128 | |
| 88 | |
| 79 | |
| 68 | |
| 63 |