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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors