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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
enath
Helper I
Helper I

combine file from folder and keep new and old column

Hello all,

I have a question on combine csv from folder.

I have many csv files like this

enath_0-1659359203811.png

 

I combine the files together all is ok. But then I have another csv file with a new column like this:

enath_1-1659359420405.png

 

I do the steps from the video https://www.youtube.com/watch?v=JAw4rrpc7vk  I add this
#"Removed Other Columns1" = Table.SelectColumns(#"Renamed Columns1", {"Source.Name", "Transform File"}),
Data = #"Removed Other Columns1"[Transform File],
Headers = List.Distinct(List.Combine(List.Transform(Data, Table.ColumnNames))),
#"Expanded Table Column1" = Table.ExpandTableColumn(#"Removed Other Columns1", "Transform File", Headers),

and I get the new column as expected. 

But then in the data attached to the new file in power bi, the last column at the end is removed from the data like if the was a maximum number of column that can be loaded.
If I want to be able to see the new column and to keep the last column I have to remove a column....but I don't want to remove any column.
How can I overcome this problem in order to get new column without loosing any other column?

thank a lot

2 REPLIES 2
v-yanjiang-msft
Community Support
Community Support

Hi @enath ,

This blog from Chris Webb detailes the workaroud about this issue: 

Making Sure All Columns Appear When You Combine Data From Multiple Files In Power BI

And a video for your reference: The BEST way to combine files in Power BI so you don’t lose columns -  YouTube

 

Best Regards,
Community Support Team _ kalyj

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Thank you for you answer.

but it does not solve the problem.

I saw that the transform data is uploaded everytime. 

I tried another way, but I guess I use the wrong transform file....

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.

Top Solution Authors
Top Kudoed Authors