Analyzing Data with Microsoft Power BI (legacy) — Question 25
You have the following three versions of an Azure SQL database:
✑ Test
✑ Production
✑ Development
You have a dataset that uses the development database as a data source.
You need to configure the dataset so that you can easily change the data source between the development, test, and production database servers from powerbi.com.
Which should you do?
Answer options
- A. Create a JSON file that contains the database server names. Import the JSON file to the dataset.
- B. Create a parameter and update the queries to use the parameter.
- C. Create a query for each database server and hide the development tables.
- D. Set the data source privacy level to Organizational and use the ReplaceValue Power Query M function.
Correct answer: B
Explanation
The correct answer is B because creating a parameter allows you to easily switch data sources without altering the dataset structure significantly. Option A is incorrect as importing a JSON file does not facilitate dynamic data source changes. Option C is not efficient as it complicates the dataset with multiple queries, while option D does not directly address the need for easy data source switching.