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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

ETL, stacking or appending transposed records from a folder data source by file

Hello,

Does anyone know how to stack records that have been transposed during ETL?

 

I'm starting with this document.  I have hundreds in a folder.  Under data source I select get data and choose excel file.

Sample document.png

It coming in like this

ibesmond_0-1644614378366.png

After some cleaning it looks like this

ibesmond_1-1644614436998.png

 

Then I transpose the data.  I finish cleaning it to get one completed record.  I could go through the whole process again and append the records, but with hundreds to do I think there is a better solution.

 

ibesmond_2-1644614523640.png

 

The get data > folder option allows me to bring in all the data at once. (Using 5 records as sample)

 

ibesmond_3-1644614711092.png

 

Here you can see I have done some cleaning and you can see the records stacked on top of each other.

 

ibesmond_4-1644615174957.png

 

Here is were my problem starts.  With one record, the next step I do is transpose the data, but since all 5 records are stacked already, I get 160 columns  when it should be only 32 columns.

 

ibesmond_5-1644615277523.png

 

I can't figure out how to transpose or pivot the data so that each record of two rows remains. I was thinking that I might be able to use the source.data column as an index, but it hasn't worked so far.

 

ibesmond_6-1644615475812.png

The goal is to have the data look like this. 5 records would make it 10 rows and 32 columns

ibesmond_7-1644615550527.png

Any ideas?  Greatly appreciated.

 

 

 

 

1 ACCEPTED SOLUTION
serpiva64
Solution Sage
Solution Sage

Hi,

you need to create a custom function in power query and then process the files automatically one by one (so avoiding the problem of the incease of the number of columns

 

If this post isuseful to help you to solve your issue consider giving the post a thumbs up 👍 !

 

View solution in original post

1 REPLY 1
serpiva64
Solution Sage
Solution Sage

Hi,

you need to create a custom function in power query and then process the files automatically one by one (so avoiding the problem of the incease of the number of columns

 

If this post isuseful to help you to solve your issue consider giving the post a thumbs up 👍 !

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.