- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Pointing data to SharePoint folder instead of a local data source (OneDrive)
We have a user who created a whole PowerBI flow via a connection to data located within their OneDrive for Business folder on their C:\ instead of pointing the data to a Teams SharePoint source where the data actually exists. In PowerBI Desktop, I can rework the queries, but as many of you can imagine, this comes with some headache in terms of making existing parts of the query work with the new data source location. Does anyone have a cleaner way or a recommendation on how to cleanly repoint the PowerBI report to the new data source location? Thank you in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

You will have to swap out the first 1-3 lines of each query. You cannot change it using the datasource button. That only changes locations with the existing connector, not changing connectors.
I've done this before, and it is tedious, but doable.
Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI Reporting- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @JMACND
As @edhans says you have to change the first few lines of each query to point to the new source location, but once you've done that, and perhaps one or two other lines to make sure you end up with the same table that is then used for the transformations in the query. None of the transform steps should need adjusting.
Regards
Phil
Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.
Blog :: YouTube Channel :: Connect on Linkedin
Proud to be a Super User!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Great @JMACND - glad you got it to work.
Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI Reporting- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @JMACND
As @edhans says you have to change the first few lines of each query to point to the new source location, but once you've done that, and perhaps one or two other lines to make sure you end up with the same table that is then used for the transformations in the query. None of the transform steps should need adjusting.
Regards
Phil
Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.
Blog :: YouTube Channel :: Connect on Linkedin
Proud to be a Super User!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

You will have to swap out the first 1-3 lines of each query. You cannot change it using the datasource button. That only changes locations with the existing connector, not changing connectors.
I've done this before, and it is tedious, but doable.
Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI Reporting- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

This did work. I did have to change the line of code just below the inserted three lines to reflect the new naming convention of the injected source query lines.

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
07-18-2024 04:04 AM | |||
11-02-2021 09:05 PM | |||
09-25-2023 03:24 AM | |||
05-08-2024 01:36 AM | |||
02-05-2023 02:45 PM |
User | Count |
---|---|
141 | |
115 | |
84 | |
63 | |
48 |