cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
amitkumar93
Helper III
Helper III

Power Query - Transform all sheets into a common Format and then Append

Hi Team,

I have multiple excel sheets with data sample as below:

amitkumar93_0-1657003195302.png

 

I have created a common format in Power query as this:

amitkumar93_1-1657003258787.png

 

When i am adding all sheets from a folder, i want all the sheets to be transformed into the header format and then append.
If i am doing the transformations for current 2 sheets, how can i make sure that if i add other sheets into the folder in future that would transformed automatically into same format.

Thanks
Amit

1 ACCEPTED SOLUTION
PurpleGate
Resolver II
Resolver II

Hi, 

 

I have had a similar task, my solution was the following:

All my excel files were in a Sharepoint folder.

 

 

1. Connect to folder system

 

2. Navigate to folder that contains all the excels

 

3.  Expand Content

 

PurpleGate_0-1657020972888.png

 

4. Delete all the applied steps that appear when you expand content until you get back to step "Transform File" 

PurpleGate_1-1657021060277.png

 

5. Expand Transform file

PurpleGate_2-1657021118411.png

 

6. Make the headers exactly how you want it. 

 

Then, when you have new excels added into that folder, they automatically append themselves under the same headings.

 

 

 

And your Powerbi makes some fun helper queries for you automatically.

PurpleGate_3-1657021204647.png

 

View solution in original post

3 REPLIES 3
KT_Bsmart2gethe
Super User
Super User

Hi @amitkumar93 ,

 

I have a video explaining how to append multiple files with different file formats.

 

https://www.youtube.com/watch?v=K9IB9bLxEXo

 

Regards

KT

PurpleGate
Resolver II
Resolver II

Hi, 

 

I have had a similar task, my solution was the following:

All my excel files were in a Sharepoint folder.

 

 

1. Connect to folder system

 

2. Navigate to folder that contains all the excels

 

3.  Expand Content

 

PurpleGate_0-1657020972888.png

 

4. Delete all the applied steps that appear when you expand content until you get back to step "Transform File" 

PurpleGate_1-1657021060277.png

 

5. Expand Transform file

PurpleGate_2-1657021118411.png

 

6. Make the headers exactly how you want it. 

 

Then, when you have new excels added into that folder, they automatically append themselves under the same headings.

 

 

 

And your Powerbi makes some fun helper queries for you automatically.

PurpleGate_3-1657021204647.png

 

Hi @PurpleGate 

You are a Lifesaver.

I implemented your logic and that works like wonder.

Thanks 🙂
Amit

Helpful resources

Announcements
September Update

Check it Out!

Click here to learn more about the September 2022 updates!

Power BI Show episode 9

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power BI Dev Camp Session 25

Ted's Dev Camp - August 25, 2022

Watch Session 25 of Ted's Dev Camp.

Top Kudoed Authors