In Power Query, when combining/appending multiple tables is there a way to add a column which will give the name of file/table the data is from.

prodigal_nerd

New Member
Joined
Apr 2, 2024
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I am trying to combine tables from 10 SharePoint excel files. Each file is named as per the owner who works on the file. I want to add a column after combining/appending all 10 tables into one, which will give me the file's/tables name (ie owners name) for example the first 100 rows of data are from John's file and next 100 rows from Mary's file and so on... So the column should have "John" for the first hundred rows and "Jane" for the next 100 rows
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: In Power Query, when combining/appending multiple tables is there a way to add a column which will give the name of file/table the data is from.
There is no need to repeat the link(s) provided above but if you have posted the question at other places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0
I no longer have access to a sharepoint folder but perhaps this will work for you.
Its a 14 min video but you will get to the point of having a report with the File name as a column by the 4 min mark.
It does assume that you are picking up all the files from the same folder though.

 
Upvote 0

Forum statistics

Threads
1,224,884
Messages
6,181,555
Members
453,053
Latest member
Kiranm13

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top