- 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

Parameters usage in datasource
I need someone's help. Present I have connected to Dev database. In power query editor I have created two parameters. One parameter for server name and another parameter for database name. After close and apply . Before publishing the report to power bi service. Do we need to map the parameters in datasource settings?
Is it fine without mapping the parameters in datasource and directly publishing the dataset to workspace. In workspace only if we change the parameters to test server . Is it fine ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @muktapurc - Yes you are correct, No need to mapping the parameters in datasource. Pls follow below steps.
- After creation of Parameters in Power Query editor. Just you can close & apply.
- Then publish the report to DEV workspace. Upon publish sucessfull.
- Navigate to Power BI services and click on deployement pipelines.
- After opening deployement pipelines click on comparison then select your report and dataset and then click deploy to QA.
- After sucessfull deployement, Click on QA/TEST deployement rules. as shown in image.
- Then change the server name and database name with related to TEST worksspace. as shown in image.
I hope this works for you. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @muktapurc - Yes you are correct, No need to mapping the parameters in datasource. Pls follow below steps.
- After creation of Parameters in Power Query editor. Just you can close & apply.
- Then publish the report to DEV workspace. Upon publish sucessfull.
- Navigate to Power BI services and click on deployement pipelines.
- After opening deployement pipelines click on comparison then select your report and dataset and then click deploy to QA.
- After sucessfull deployement, Click on QA/TEST deployement rules. as shown in image.
- Then change the server name and database name with related to TEST worksspace. as shown in image.
I hope this works for you. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @muktapurc - Yes, it's fine to directly publish the dataset without mapping the parameters in data source settings in Power BI Desktop. After publishing to the Service, you can change the parameters to the Test server, and it should work, provided your gateway and credentials are correctly configured.
Keepinmind: When working with parameters for server name and database name in Power BI, the workflow and considerations for publishing to the Power BI Service depend on how you've set things up.
sharing Reference links:
https://radacad.com/change-the-source-of-power-bi-datasets-dynamically-using-power-query-parameters
https://www.phdata.io/blog/how-to-parameterize-data-sources-power-bi/
Hope the above information helps.
Proud to be a Super User! | |
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Thank you

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
09-13-2024 06:06 AM | |||
01-07-2025 03:33 PM | |||
Anonymous
| 11-13-2023 06:39 AM | ||
10-14-2021 06:24 PM | |||
03-24-2025 07:31 PM |
User | Count |
---|---|
117 | |
99 | |
84 | |
53 | |
47 |