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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Data source location for multiple users in different directory.

My PBIX file is located at  "C:\POWERBI\Exec" and my data source is located at "C:\POWERBI\Sources\". But, my client does not uses "C:\POWERBI" as it default path. It uses "E:\ANOTHER_PATH\". So, everytime that I send my PBIX file to my client it has to change all the file's paths of all data sources. Can I make something more generic on my path? For example, like on javascript:

 

File path = "..\Sources\", so my client and I does not have to change file's path's location everytime? 

 

 

 

1 ACCEPTED SOLUTION
v-ljerr-msft
Employee
Employee

Hi @Anonymous,

 

I don't think relative path for data source is supported currently. Here is a similar idea shared on Power BI Ideas. You can vote it up and add your comments there to improve Power BI on this feature.Smiley Happy

 

In addition, you can try making use of Query Parameters and Power BI Templates to dynamically switch data sources in this scenario. For more details about this, you can refer to the following articles:

https://powerbi.microsoft.com/en-us/blog/deep-dive-into-query-parameters-and-power-bi-templates/

http://datachant.com/2016/04/29/power-bi-templates/

 

Regards

View solution in original post

1 REPLY 1
v-ljerr-msft
Employee
Employee

Hi @Anonymous,

 

I don't think relative path for data source is supported currently. Here is a similar idea shared on Power BI Ideas. You can vote it up and add your comments there to improve Power BI on this feature.Smiley Happy

 

In addition, you can try making use of Query Parameters and Power BI Templates to dynamically switch data sources in this scenario. For more details about this, you can refer to the following articles:

https://powerbi.microsoft.com/en-us/blog/deep-dive-into-query-parameters-and-power-bi-templates/

http://datachant.com/2016/04/29/power-bi-templates/

 

Regards

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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