SOLVED

Get & Transform Data | Get Data from a folder transforming the files before the combination

Copper Contributor

Hello,

 

I want to read the files in a folder, but those files needs some transformation before I can combine them with power query. Normally what i would do if all of them were in a table format is to combine them and load but since the data in each file is not fully structure if i do this i won´t get correct data.

 

I have many files that before the combination need to:

1-Remove the first 10 rows of each since they are empty.

2-Unpivot columns.

 

How can i do this with Power Query before combining them in a massive way?

 

5 Replies
best response confirmed by Carlos Cardenas Velasquez (Copper Contributor)
Solution

Hi @Carlos Cardenas Velasquez

 

Start with Combine and Edit

 

image.png

 

Then do your transformations (removing rows and unpivotting) in the Transform Sample File step

 

image.png

 

 

Those transformations will then be applied to all the files as they are pulled in.

 

 

Also, load as Connection Only to start with.

then After it's complete go to the Query Pane and change your load destination to Table or Data Model

@Wyn Hopkins I have done this multiple times, however, the buttons at the bottom, combine and load, are no longer available.

 

I am using Excel 2016

hi @chucknjoy 

 

Id suggest starting a new post and adding a screenshot to help us debug

 

Cheers

 

Wyn

1 best response

Accepted Solutions
best response confirmed by Carlos Cardenas Velasquez (Copper Contributor)
Solution

Hi @Carlos Cardenas Velasquez

 

Start with Combine and Edit

 

image.png

 

Then do your transformations (removing rows and unpivotting) in the Transform Sample File step

 

image.png

 

 

Those transformations will then be applied to all the files as they are pulled in.

 

 

View solution in original post