Reply
muktapurc
New Member
Partially syndicated - Outbound

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

Syndicated - Outbound

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
New Member

Syndicated - Outbound

Thank you 

suparnababu8
Super User
Super User

Syndicated - Outbound

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

Syndicated - Outbound

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!





Syndicated - Outbound

Thank you 

avatar user

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)