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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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