Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Extract Excel workbook filename

Hi everyone. First post with a new account.   I'm trying to extract the filename of an Excel workbook in Power Query and place into a column. Feels like this should be possible, as it's there in th...
  • MFelix's avatar
    6 years ago

    Hi Anonymous ,

     

    I believe that you don't wnat to merge but append all workbooks, the best option is to use the From Folder option that creates a list of all your files in the folder and a function for you to use a file as a demo to make the treatment of the data, when you finalize the treatement you will have a column wiht the name of the file that you can then delete or keep.

     

    https://docs.microsoft.com/en-us/power-bi/desktop-combine-binaries