File Path Problems & Sharing Power Query Solutions

Monsignor

Board Regular
Joined
May 30, 2011
Messages
162
Last night I was at my desktop developing a great Power Query solution. With all of the source files in Dropbox, I decided to take my laptop and go work somewhere else. Well, the file paths and folder paths were no good and my queries errored out.

It's understandable why that happened, but is there a way around this such that multiple people can at least view the data in the workbook?
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Hi
You could use a solution Building a Parameter Table for Power QueryThe Ken Puls (Excelguru) Blog
For getting your power query book folder try a such formula
Code:
=MID(CELL("filename"),1,LOOKUP(99,SEARCH("\",CELL("filename"),ROW($1:$99))))
as a part of your parameter table. Combining it with external source file names and folders you can get dynamic paths to your data sources linked to parameters names which you get with fnGetParameter in your power query code.

Regards,
 
Upvote 0
Thanks! Yes. I got in touch with Ken and he also pointed me to chapter 23 in 'M is for Data Monkey.' I didn't know "Parameter Table" was the answer to the problem. :biggrin:
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top