r/ExcelPowerQuery • u/Autistic_Jimmy2251 • May 16 '25
Tracking data source in file?
I have a lot of files in a directory. All of them have unique file names. They are all xlsx files. The name of the 1 and only sheet in each workbook is the same name as the workbook. All of the column in every workbook/sheet are always the same. I need PowerQuery to add the name of the source workbook/sheet next to every row the data came from in the last column under the header “Source”. How do I do this?
1
Upvotes
View all comments
Show parent comment
4
u/Autistic_Jimmy2251 May 17 '25 edited May 17 '25
I just watched the video. I wish I was by my computer.
I have literally been using PQ for 4 days ever in my life.
I think this might have answered my issue.
Can’t wait to get home tonight & try it out. Thx.