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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
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! | |
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 14 | |
| 11 | |
| 8 | |
| 7 | |
| 6 |