Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric certified for FREE! Don't miss your chance! Learn more
Dear All,
We started using Onedrive in my company which ended up having our own username in data source's paths.
Therefore, whoever would like to refresh the Power BI destop, needs to change the source first to the new path with his/her own username. Something like:
C:\Users\ username \OneDrive\Desktop
Is there any way to automate it? For example to create a parameter that will automatically find the name of the current user and adjust it automatically in the data source? In VBA there's a function Environ() that is really helpful, not sure if something similar exists in Power BI.
Thank you in advance.
Hello @qxphm ,
Check this video it will help your with your case
https://www.youtube.com/watch?v=XIq5vN5oPf8&t=89s
If I answered your question, please mark my post as solution, Appreciate your Kudos 👍
Proud to be a Super User! | |
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 12 | |
| 12 | |
| 10 | |
| 6 | |
| 5 |