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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
repaaksp
Microsoft Employee
Microsoft Employee

datasource change with parameters

Hi,

 

 

how to select automatically the web datasource if one server is down and the other server is up. I have declared parameters with both servers and in the data load view one part of the url is the parameter. default value and current value are the same. But the only way to change the server is to do that in the parameter level. Is there a way to make powerbi to select it automatically (by choosing which server is up )?

1 ACCEPTED SOLUTION

Hi @repaaksp,

 

Based on your description, you need to set a dynamic parameter value to your parameter.

 

Currently, the available values for a parameter can only from a hardcode list, and parameter value can only be changed manually. For the feature to get parameter available values from a query, I would recommend you submit a feature request in the idea forum: https://ideas.powerbi.com/forums/265200-power-bi-ideas.

 

Reference
https://powerbi.microsoft.com/en-us/blog/deep-dive-into-query-parameters-and-power-bi-templates/
http://biinsight.com/power-bi-desktop-query-parameters-part-1/

 

Regards,

Charlie Liao

View solution in original post

4 REPLIES 4
ankitpatira
Community Champion
Community Champion

@repaaksp You can change parameter values in pbi desktop by exiting out of query editor (Close&Apply) and then under Home tab -> Edit Queries dropdown -> Edit Parameters.

 

Capture.PNG

Yes I know I can edit those myself. But the question is how to make online services choose the parameter itself, depending on which parameter is available

I'm not seeing a solution to your question as I too am having the same issue with the end user being able to change a date parameter once it is published.

Hi @repaaksp,

 

Based on your description, you need to set a dynamic parameter value to your parameter.

 

Currently, the available values for a parameter can only from a hardcode list, and parameter value can only be changed manually. For the feature to get parameter available values from a query, I would recommend you submit a feature request in the idea forum: https://ideas.powerbi.com/forums/265200-power-bi-ideas.

 

Reference
https://powerbi.microsoft.com/en-us/blog/deep-dive-into-query-parameters-and-power-bi-templates/
http://biinsight.com/power-bi-desktop-query-parameters-part-1/

 

Regards,

Charlie Liao

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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