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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors