Analyzing Data with Microsoft Power BI (legacy) — Question 11
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You create a parameter named DataSourceExcel that holds the file name and location of a Microsoft Excel data source.
You need to update the query to reference the parameter instead of multiple hard-coded copies of the location within each query definition.
Solution: In the Power Query M code, you replace references to the Excel file with DataSourceExcel.
Does this meet the goal?
Answer options
- A. Yes
- B. No
Correct answer: A
Explanation
The solution is correct because replacing hard-coded references with the parameter DataSourceExcel in the Power Query M code allows for easier management and updates of the data source location. The alternative option, which suggests that this does not meet the goal, is incorrect as using parameters is a best practice in query management.