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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
rbech
Regular Visitor

Multiple queries transformations VS one big query transformation

Hi Guys !

I have to collect, transform and visualise 14 folders with 1 xls sheet uploaded by days. Each sheet has approximatively 86K rows (timeseries "per second"). Unfortunately the columns are not really the same in every folders (so I can combine files only by folders). So I have initialy 14 requests in Power Query and I created a Datetime table for filtering datas. I've already cleared the data in each requests.

 

I have to pivot tables to get datetime, variable (=columns in the xls) and value columns. I will publish an app to share visualisations (based on measures) with the customer. (fyi I canot use dataflow in power service). 

My question is, what is the more efficient in Power Query :

1.Unpivot separatively every requests (tables) and then combine them in a synthetic table based on the datetime.
2. Combine every requests (tables) in a synthetic table based on the datetime and then unpivot the synthetic table.
3. Any other recommendation ?

Thank you for your help !

1 ACCEPTED SOLUTION
AmiraBedh
Super User
Super User

For your scenario in Power Query, in my opinion the most efficient approach would likely be to combine the tables first and then unpivot the combined table since you want to reduce redundant transformations across multiple tables.

You can start by combining tables by folders using Table.Combine, performing initial transformations such as removing unnecessary columns on these combined tables.

Once the data is combined and cleaned, use Table.Unpivot to transform it into the desired format. 


Proud to be a Power BI Super User !

Microsoft Community : https://docs.microsoft.com/en-us/users/AmiraBedhiafi
Linkedin : https://www.linkedin.com/in/amira-bedhiafi/
StackOverflow : https://stackoverflow.com/users/9517769/amira-bedhiafi
C-Sharp Corner : https://www.c-sharpcorner.com/members/amira-bedhiafi
Power BI Community :https://community.powerbi.com/t5/user/viewprofilepage/user-id/332696

View solution in original post

1 REPLY 1
AmiraBedh
Super User
Super User

For your scenario in Power Query, in my opinion the most efficient approach would likely be to combine the tables first and then unpivot the combined table since you want to reduce redundant transformations across multiple tables.

You can start by combining tables by folders using Table.Combine, performing initial transformations such as removing unnecessary columns on these combined tables.

Once the data is combined and cleaned, use Table.Unpivot to transform it into the desired format. 


Proud to be a Power BI Super User !

Microsoft Community : https://docs.microsoft.com/en-us/users/AmiraBedhiafi
Linkedin : https://www.linkedin.com/in/amira-bedhiafi/
StackOverflow : https://stackoverflow.com/users/9517769/amira-bedhiafi
C-Sharp Corner : https://www.c-sharpcorner.com/members/amira-bedhiafi
Power BI Community :https://community.powerbi.com/t5/user/viewprofilepage/user-id/332696

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.