Updating Local Excel Data Source Paths in Power BI Desktop
Short answer
BDE Update the Excel file path using Data Source Settings, the Power Query Formula Bar, or the Advanced Editor in Power BI Desktop.
Question
You are notified that the Excel data source was moved to a new location.
You need to update the PBIX file to use the new location.
What are three ways to achieve the goal? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.
Key Takeaways
Path updates must occur in Power BI Desktop via Data Source Settings or M-code editing; the Power BI Service cannot alter local file paths.
Learn how to redirect a PBIX file to a new Excel location using Data Source Settings, Power Query Formula Bar, or Advanced Editor edits.
Common mistake: Selecting Option A (Service settings) is a common error. Users often confuse credential management with connection configuration, but the service does not support changing the source file path for imported data.
Expert Analysis
The core challenge is updating the physical file path of an Excel source within a Power BI Desktop (.pbix) file. The question asks for three distinct methods to achieve this update locally.
Option B is correct because the Data Source Settings dialog (File > Options and settings > Data source settings) provides a centralized interface to manage connections. It includes a Change Source button that allows you to browse and select the new file location, automatically updating the underlying query references.
Options D and E are correct because they involve editing the M code directly in Power Query Editor. When you open Power Query Editor, the applied steps include a 'Source' step containing the file path. You can edit this path by selecting the step and modifying the text in the Formula Bar (Option D), or by opening the Advanced Editor (Option E) to manually change the string in the M script. Both methods effectively update the connection path.
Option A is incorrect because the Power BI Service (cloud) does not allow changing the data source path or connection details for imported datasets after they are published; it only manages credentials and gateways. Option C is incorrect because the 'Current File' settings in Power BI Desktop relate to general options like memory usage and load behavior, not specific data source connection paths.
A common trap is selecting Option A, assuming cloud management covers all updates. However, structural changes like moving a local file require desktop-side modification before republishing.
Exam Strategy
When asked about modifying data connections in Power BI, distinguish between Desktop and Service capabilities. The Service handles credentials and gateways but not source paths for imported models. In Desktop, remember that 'Data Source Settings' offers a GUI-based bulk update, while Power Query Editor (Formula Bar/Advanced Editor) offers granular M-code control.
Frequently Asked Questions
Can I change the Excel file path directly in the Power BI Service?
What is the difference between using the Formula Bar and Advanced Editor?
Community Votes
33% of anonymous learners picked answer B. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 24 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 24
-
Florinuca 👍 25The answer is correct! B, D and E are the correct options!
-
benni_ale 👍 7Actually I did a quick research and apparently YOU CAN EDIT THE CREDENTIALS FROM SERVICE but YOU CANNOT EDIT THE INPUT PATH FROM SERVICE... Meaning you can only do it from Desktop. So BDE are correct.
-
omath 👍 4Answer: B, D, E Explanation: - B. Data source settings in Power BI Desktop → Change Source In Power BI Desktop, go to File > Options and settings > Data source settings, select your Excel source, and click Change Source… to update the file path. - D. Power Query Editor → Formula bar In Power Query Editor, select the Source step and edit the path directly in the formula bar, e.g. - E. Power Query Editor → Advanced Editor Open Advanced Editor and modify the M code to point to the new file path (same line as above, just in the full script). * Other options: - A. Configure data source credentials (Service) – Changes credentials, not the file path/location. It won’t repoint the dataset to a new file path by itself. - C. Current File → Data Load settings – Controls load behavior (e.g., background refresh, relationship options), not the data source path.
-
MANANDAVEY 👍 4B. From the Data source settings in Power BI Desktop, configure the file path. This option allows you to update the connection information for the Excel data source, including changing the file path to the new location. D. From Power Query Editor, use the formula bar to configure the file path for the applied step. If the source step in Power Query shows the file path, you can change it directly in the formula bar to reflect the new file location. E. From Advanced Editor in Power Query Editor, configure the file path in the M code. The Advanced Editor lets you edit the M code directly, which includes updating the file path to the new location of the Excel data source.
-
ee0625a 👍 3Choice A does not help update the file path but applies to datasets already published to the Power BI service. Choice C also does not allow you to change the file path of a data source. It only controls how data is loaded (e.g., cache settings).
Show 19 more comments
-
rcaliandro 👍 2B. From the Data source settings in Power BI Desktop, configure the file path. D. From Power Query Editor, use the formula bar to configure the file path for the applied step. E. From Advanced Editor in Power Query Editor, configure the file path in the M code Given answer is correct
-
Manoj1152 👍 2B,C,E IS CORRECT
-
LOCOBI 👍 2c IS NOT CORRECT
-
FinelogBiseum 👍 2C is INCORRECT!
-
LRW2025 👍 2BDE, agreed
-
anett19 👍 1options C is not about changing it through 'transform data' and then 'data source settings'. (where the path can be changed indeed). In the answer is mentioned the 'data load' which is under 'current file' when you go to 'option and settings' from file menu. And there you don't have the possibility to change the path
-
dizzyraccoon 👍 1Three ways: data source setting; advanced editor; formula bar inside of Power Query Editor
-
JustdoBI 👍 1c is correct as well IMO. Data Source settings has the "change source option".
-
Tamsitamsu 👍 1b, d, and e are the correct answers, a and d seem wrong
-
TheAgent 👍 1B, D, and E are the correct answers
-
Pradeepr10 👍 1B,D,E .others are wrong
-
benni_ale 👍 1Not sure about A though
-
LOCOBI 👍 1Correct anwser BDE
-
Thejani 👍 1b,d,e are correct
-
JudT 👍 1Checked: Correct
-
Kiran37 👍 1Correct answer
-
DexTorao 👍 1B , D and E
-
niceguysfinishlast 👍 1corrrect
-
Raj2304 👍 1correct
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.
Related Analysis
Practice All PL-300 Questions
Access 116 questions with complete answers and detailed explanations.
View Full PL-300 Practice Test →