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
1
u/Autistic_Jimmy2251 May 19 '25
Her video has helped but has only solved 50% of my issue.
Every workbook I have has a different workbook name BUT also has only 1 sheet BUT every sheet name is the name of workbook file.
I found a video by a guy named Tom who solved the tab/sheet name issue but I don’t understand how to share all his helper queries or combine them into 1 query.