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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Adding file name & path as a column attribute

Hi everyone, I'm hoping someone can assist. I'm using a SharePoint folder as a data source for a report. The folder contains XLSX files that will be added to each month, e.g.:

 

Commercials_2019.06.xlsx

Commercials_2019.07.xlsx
Commercials_2019.08.xlsx
Commercials_2019.09.xlsx

 

The table of data in each XLSX is similar to the below. I'd like to be able to add a File Path column to the tables:

 

DocIdAuthorAuthor DepartmentFile Path
400029Jimmy JamesSales<Sharepointsite.com>\DocLibrary\CommercialReports\Commercials_2019.07.xlsx
400029Jimmy JamesSales<Sharepointsite.com>\DocLibrary\CommercialReports\Commercials_2019.07.xlsx
400029Kelly kellysonFinance<Sharepointsite.com>\DocLibrary\CommercialReports\Commercials_2019.07.xlsx
400029Kelly kellysonFinance<Sharepointsite.com>\DocLibrary\CommercialReports\Commercials_2019.08.xlsx
400029Peter PetersonServices<Sharepointsite.com>\DocLibrary\CommercialReports\Commercials_2019.08.xlsx
400030Peter PetersonServices<Sharepointsite.com>\DocLibrary\CommercialReports\Commercials_2019.08.xlsx
400030Petra PetrasonC-Suite<Sharepointsite.com>\DocLibrary\CommercialReports\Commercials_2019.09.xlsx
400030Sarah SarahsonFinance<Sharepointsite.com>\DocLibrary\CommercialReports\Commercials_2019.09.xlsx
400030Sarah SarahsonFinance<Sharepointsite.com>\DocLibrary\CommercialReports\Commercials_2019.09.xlsx
400030Jimmy JamesSales<Sharepointsite.com>\DocLibrary\CommercialReports\Commercials_2019.09.xlsx
400030Kelly kellysonFinance<Sharepointsite.com>\DocLibrary\CommercialReports\Commercials_2019.06.xlsx
400030Kenny KennysonSales<Sharepointsite.com>\DocLibrary\CommercialReports\Commercials_2019.06.xlsx
400030Kenny KennysonSales<Sharepointsite.com>\DocLibrary\CommercialReports\Commercials_2019.06.xlsx
400030Mark MarksonSales<Sharepointsite.com>\DocLibrary\CommercialReports\Commercials_2019.06.xlsx
400030Mark MarksonSales<Sharepointsite.com>\DocLibrary\CommercialReports\Commercials_2019.06.xlsx
400035Michael HutchensServices<Sharepointsite.com>\DocLibrary\CommercialReports\Commercials_2019.06.xlsx

 

This would enable me to add File Path to a slicer, to slice data based on month.

Any assistance would be appreciated.

2 REPLIES 2
v-lili6-msft
Community Support
Community Support

hi, @Anonymous 

You could expand the context of all the xlsx, then extract month value by Split Column in edit queries.

Then use it as a slicer.

https://www.tutorialgateway.org/how-to-split-columns-in-power-bi/

 

Best Regards,

Lin

 

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Thanks @v-lili6-msft  - not sure what we mean by the following?


@v-lili6-msft wrote:

You could expand the context of all the xlsx


 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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