Forum Discussion
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?
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.:smileyhappy:
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
1 Reply
- v-ljerr-msftMicrosoft 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.:smileyhappy:
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