Forum Discussion
Change data source in Power BI service
- 2 years ago
Yes, Parameters is the right approach. Did you use these parameters in your original connector?
- 2 years ago
In Power Query, you can define Parameter and input all databases name as input. All other queries should be changed to use this parameter to refer for Data source name/connection strings. Once published to Service, it will be available to set on Semantic Model's settings.
Yes lbendlin abpgupta , I finally managed to solve the problem
1. I couldn't edit the parameter fields on the PowerBI Service side to put the prod url, so I had to do this : change Type Parameter to "Text" in Power Query
2. Once published, I still had the data from the dev database even though I'd modified the source, but I had to do this trick : reload the semantic
Everything's working fine now, but you may have some suggestions for improvement.
- abpgupta2 years agoContinued Contributor
For string inputs, always use Text as type of data and avoid using "any". You can also create list of values as table and use as input in parameter to have control on string values.
- GOT20212 years agoFrequent Visitor
I've seen this option in Power BI Desktop and I've added the two urls, but Power BI Service doesn't suggest the selection. I still have to enter the url and database name.
- lbendlin2 years agoSuper User
That's correct. The Power BI service doesn't care about choice fields. You have to provide the values.