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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

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 III
Resolver III

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
Impactful Individual
Impactful Individual

Hi @Anonymous ,

 

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 III
Resolver III

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

 

Anonymous
Not applicable

Hi @PurpleGate 

You are a Lifesaver.

I implemented your logic and that works like wonder.

Thanks 🙂
Amit

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors
Top Kudoed Authors