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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.