cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Ugarte335 Helper I
Helper I

Relative path to data source

Hello!

 

I have my PowerBI file in a folder and some folders inside with the data sources. I would like to refer to those data sources (folders and files) via relative path, so when I move the folder or rename one of the above folders, or I create a copy I don't have to manually update the path to the source data files.

 

Is there an option for this?

 

Thanks!

3 REPLIES 3
Microsoft v-lionel-msft
Microsoft

Re: Relative path to data source

Hi @Ugarte335 ,

 

If you move or rename the file of the data source, you will meet a error when you refresh:

c2.PNG

Like you said, the method of using relative paths does not exist in the current version( 2.76.5678.782 64-bit (December 2019)).

Maybe you can Submit an idea .

After you changed the path of the data source, you can modify it at File -> Options and settings -> data source setting .

c3.PNG

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Highlighted
Super User I
Super User I

Re: Relative path to data source

Hi @Ugarte335,

If your datasource is a folder which has many subfolders and files in it, Power BI should still be able to pull the data even if the subfolders have been renamed so long as the main folder name stays the same. Note: Only if the datasource is the main folder. 






Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
www.linkedin.com/in/danebelarminocpa
Ugarte335 Helper I
Helper I

Re: Relative path to data source

Thanks all, that was my fear. It would have been amazing if PowerBI gave this option. For people that work with local files it would be an amazing improvement.

Helpful resources

Announcements
New Ranks Launched March 24th!

New Ranks Launched March 24th!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power BI Community!

‘Better Together’ Contest Finalists Announced!

‘Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Arun 'Triple A' Event Video, Q&A, and Slides

Arun 'Triple A' Event Video, Q&A, and Slides

Missed the Arun 'Triple A' event or want to revisit it? We've got you covered! Check out the video, Q&A, and slides now.

Top Solution Authors
Top Kudoed Authors