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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
nok
Advocate II
Advocate II

Merge files keeping additional created columns

Hi!

I'm racking my brain over something I thought would be simple. These are all the files I have inside a sharepoint folder(they all have the same structure, only the row values ​​change):

nok_3-1759518730250.png

In this initial step of my PowerQuery, I needed to create two new columns:

  1. "FileDate" column (coming from the column "Name").
  2. "Year.Quarter" column (based on the "FileDate" column).

This two columns allows me to filter only the files I need to merge to create a single table. However, when I click the merge files icon in the "Content" column (marked in red in the image), PowerBI merges only the rows of the files I need, but without the "FileDate" and "Year.Quarter" columns I created earlier. Not even the "Name" column, with the origin file names, appears. If it were present in these merged tables, I could create "FileDate" and "Year.Quarter" columns again, but it doesn't appear, and I can't tell which file each row in my merged table belongs to.


How can I create a merge of the tables that maintains the "FileDate" and "Year.Quarter" columns I needed to create in the steps prior to this merge?

 

 

1 ACCEPTED SOLUTION
GeraldGEmerick
Super User
Super User

@nok In your Applied Steps area, look for a Removed Other Columns step. Click the gear icon and select the other columns that you want to include and not be removed.

GeraldGEmerick_0-1759521451596.png

 

View solution in original post

1 REPLY 1
GeraldGEmerick
Super User
Super User

@nok In your Applied Steps area, look for a Removed Other Columns step. Click the gear icon and select the other columns that you want to include and not be removed.

GeraldGEmerick_0-1759521451596.png

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.