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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello,
How can I relink files from One Drive for Business in Power BI Desktop to replace existing Sources?
These files were originally on a local drive and I would like not to loose work done in Desktop.
Many thanks
Joaquim
Solved! Go to Solution.
You can replace your Source line in your M code "View | Advanced Editor" with something like:
Source = Csv.Document(Web.Contents("https://[tenant]-my.sharepoint.com/personal/[user]/Documents/State, Zip Code and Value.csv"),[Delimiter=",", Columns=3, Encoding=1252, QuoteStyle=QuoteStyle.None]),
You can replace your Source line in your M code "View | Advanced Editor" with something like:
Source = Csv.Document(Web.Contents("https://[tenant]-my.sharepoint.com/personal/[user]/Documents/State, Zip Code and Value.csv"),[Delimiter=",", Columns=3, Encoding=1252, QuoteStyle=QuoteStyle.None]),
thank you @Greg_Deckler.
I am keeping my username and it works perfectly.
Will it pose any problems, however, if another user is using the pbix file?
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!