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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
newpbiuser01
Helper V
Helper V

Excel File Name in a Custom Column

Hello,

I have a report that pulls data from multiple excel files from a folder. The excel file names have data that we'd like to use in the report. Just wondering how to do that using a custom column within power query? How do we get the excel file name as a calculated column within the data table? I'd really appreciate any help. 

Thank you!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hey in this case, you can choose Get data > Folder, once you choose folder, you will see all excel files name in your PQ. then you can do some data cleaning process to shape the data as the format you want in the report. Hope it is helpful! 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hey in this case, you can choose Get data > Folder, once you choose folder, you will see all excel files name in your PQ. then you can do some data cleaning process to shape the data as the format you want in the report. Hope it is helpful! 

Thanks! I found it under the Source.Names column when I combined the files after loading 🙂

Helpful resources

Announcements
ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.