Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
muktapurc
Regular Visitor

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 ?

1 ACCEPTED SOLUTION
suparnababu8
Super User
Super User

Hi @muktapurc  - Yes you are correct, No need to mapping the parameters in datasource. Pls follow below steps.

  1. After creation of Parameters in Power Query editor. Just you can close & apply.
  2. Then publish the report to DEV workspace. Upon publish sucessfull.
  3. Navigate to Power BI services and click on deployement pipelines.
  4. After opening deployement pipelines click on comparison then select your report and dataset and then click deploy to QA.
  5. After sucessfull deployement, Click on QA/TEST deployement rules. as shown in image. suparnababu8_0-1732520731938.png

     

  6. Then change the server name and database name with related to TEST worksspace. as shown in image.
  7. suparnababu8_1-1732520882404.png

I hope this works for you. Thanks!

View solution in original post

4 REPLIES 4
muktapurc
Regular Visitor

Thank you 

suparnababu8
Super User
Super User

Hi @muktapurc  - Yes you are correct, No need to mapping the parameters in datasource. Pls follow below steps.

  1. After creation of Parameters in Power Query editor. Just you can close & apply.
  2. Then publish the report to DEV workspace. Upon publish sucessfull.
  3. Navigate to Power BI services and click on deployement pipelines.
  4. After opening deployement pipelines click on comparison then select your report and dataset and then click deploy to QA.
  5. After sucessfull deployement, Click on QA/TEST deployement rules. as shown in image. suparnababu8_0-1732520731938.png

     

  6. Then change the server name and database name with related to TEST worksspace. as shown in image.
  7. suparnababu8_1-1732520882404.png

I hope this works for you. Thanks!

rajendraongole1
Super User
Super User

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.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Thank you 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.