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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

HELP! How to have a column showing the file name

i'm importing multiples excels from and appending them via the import from SharePoint Folder options. 

 

each month has 1 excel file, showing the sales by product for each month, all in the same folder:

eg as below, (in each excel file, there's no column to indicate sales month, it's only based on the file name)

file name | product | sales

1.xlsx       | A            | 10

2.xlsx       | A            | 20

 

when i comebine the files together, using the "combine file" button at the content column

Capture.PNG

i managed to have all data from different excel files combined together, but there's no indicaation of which month each row comes from and hence i can't tell the sales come from which month. 

 

Capture.PNG

how can i add a column to indicate the file name of the souce excel file?

 

thanks. 

 

 
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Refer the solution

https://community.powerbi.com/t5/Desktop/Keeping-File-Name-as-a-Column/m-p/792666

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
v-jayw-msft
Community Support
Community Support

Hi @Anonymous ,

 

Refer the below topic as well.

https://community.powerbi.com/t5/Desktop/Retain-file-name-column-when-using-Folder-as-a-data-source-Power/m-p/22851

 

Best Regards,

Jay

Community Support Team _ Jay Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
amitchandak
Super User
Super User

@Anonymous , Refer the solution

https://community.powerbi.com/t5/Desktop/Keeping-File-Name-as-a-Column/m-p/792666

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.