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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Filepath from same folder as the PBIX file(PowerQuery M language)

Hey PBI'ers,

 

I have a parameter with a filepath.

with """&FilePath&"" I intergate this as my source in de advanced script editor. 

But it's on my C: hardrive and I want have to implement 130 dashboards with the same data model.

So how can I get the currentfolder where the PBIX file is in + [filename](as my parameter input) in the

M language?

 

Thanks already, kind regards,

 

MrNelsch

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I fixed this by integrating "Sharepoint List" 🙂

Using this tutorial: tutorial

 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hey PBI'ers,

 

I have a parameter with a filepath.

with """&FilePath&"" I intergate this as my source in de advanced script editor. 

But it's on my C: hardrive and I want have to implement 130 dashboards with the same data model.

So how can I get the currentfolder where the PBIX file is in + [filename](as my parameter input) in the

M language?

 

Thanks already, kind regards,

 

MrNelsch

Greg_Deckler
Super User
Super User

Do the dashboards (report pages?) need to be in separate PBIX files or can you have them all in a single PBIX file?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

I fixed this by integrating "Sharepoint List" 🙂

Using this tutorial: tutorial

 

Helpful resources

Announcements
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.