Forum Discussion
Changing from Local/Network Drive Folder to Sharepoint Folder? OR Changing from Folder to File
Hi everyone. We ran into an issue where other people accessing the report I built are not able to refresh the report with a daily export that is dropped into this destination folder, which I assume is because they may have the network drive mapped differently. For other reasons as well, I want to change this from the current folder path, to a Sharepoint Folder.
Current:
Now here's the weird thing. I created a folder where individual static FILES were linked to the file, and there was no issue:
However, when I try to link to the folder on the sharepoint site, whether I leave the link as it is, or if I chop it down to end right at the folder, I get this error. Full link: https://COMPANYNAME.sharepoint.com/:f:/r/sites/US-COMPANYNAME-FTCTracking/Shared%20Documents/General/North%20American%20Transportation%20Performance/RAW%20DATA?csf=1&web=1&e=8ydxud
Is there any way I can change to this Data Source, or is my only option to create a new Data Source from scratch, directing it to the Sharepoint folder from the get-go? Honestly - an acceptable solution would be if I could change this to a FILE as opposed to a FOLDER, as that setup is no longer needed, but I couldn't figure that out either (seems people usually go FILE to FOLDER, not the other way around).
Create a new query and connect to the Sharepoint file or folder you need, then open Advanced Editor and copy the steps then use that to replace the initial steps in your existing query. You will be able to keep all the existing steps after the connection, e.g. changing data types etc, so everything else should just work. You can then delete the new query you created as you won't need it anymore.
5 Replies
- johnt75Super User
Create a new query and connect to the Sharepoint file or folder you need, then open Advanced Editor and copy the steps then use that to replace the initial steps in your existing query. You will be able to keep all the existing steps after the connection, e.g. changing data types etc, so everything else should just work. You can then delete the new query you created as you won't need it anymore.
- SadakaAli-6486Frequent Visitor
This solution would mean I have to recreate all measures/calculated columns, redirect all relationships in the Data Model to the "new" data, then update all visuals to the fields in the new data, correct?
I was hoping to avoid that since there are 22 pages and many measures/columns associated with this query. I'm okay if this is the case, though - this was the first PowerBI report I built, and to be honest, this wasn't supposed to get so large, but it grew pretty rapidly.- johnt75Super User
No, you're misunderstanding me. By editing your existing query to only change the initial steps, to do with the connection to sharepoint rather than a local file, you keep all subsequent steps involving any new columns or anything else. The existing table will be loaded into the model and all relationships, measures, calculated columns etc will be retained. All that is changing is the first few lines of the query where you define the file to connect to.