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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

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
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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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