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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Community Champion
Community Champion

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
Community Champion
Community Champion

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
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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