You connect to an Azure SQL Database named SalesDev from Power BI Desktop. Before publishing the report, you create a text parameter called DatabaseName whose default value is "SalesDev" so the same file can later point to the production database "SalesProd". To ensure that changing the parameter in the Power BI service actually redirects the connection to SalesProd, which additional action must you take in Power Query Editor before publishing?
Edit the Source step so the Sql.Database function uses the DatabaseName parameter instead of the hard-coded database name.
Mark the parameter as Required and read-only so that it cannot be left blank when the dataset is published.
Change the parameter's privacy level to Organizational to make it visible through the on-premises data gateway.
Set Suggested Values for the parameter to Query so it retrieves the list of databases from the server.
After the parameter is defined, it will only surface in the Power BI service if it is actively referenced by at least one query. Replacing the literal database name in the Source step with the DatabaseName parameter (for example, Sql.Database("server.database.windows.net", DatabaseName)) binds the connection string to the parameter. When the dataset is later published, the parameter is exposed in the dataset settings, and changing its value causes Power BI to connect to the corresponding database. Simply changing privacy settings, suggested values, or requirement flags does not cause the data source to use the parameter and therefore will not redirect the connection.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What does the Sql.Database function do in Power Query Editor?
Open an interactive chat with Bash
How do parameters work in Power BI to change database connections?
Open an interactive chat with Bash
Why doesn't changing Suggested Values or privacy settings update the connection dynamically?
Open an interactive chat with Bash
Microsoft Power BI Data Analyst
Prepare the data
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .