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

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!:
The Definitive Guide to Power Query (M)

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

I fixed this by integrating "Sharepoint List" 🙂

Using this tutorial: tutorial

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.