Forum Discussion
MYSQL connection - changing database source requires M query
Hi gazumpt,
In your scenario, you can create parameter for database names in Query Editor as shown in the following screenshot.
After you create reports for your Dev MySQL Database, you are able to switch the database to UAT database by changing the parameters’ values.
For more details about creating parameter in Power BI Desktop, please review the following blog:
http://biinsight.com/power-bi-desktop-query-parameters-part-1/
Another method is to paste the codes of Advanced Editor to Text file, press Ctrl+H, replace "Dev" with "UAT" in the codes, then copy the codes back to Advanced Editor.
Thanks,
Lydia Zhang
Hello,
Does this
http://biinsight.com/power-bi-desktop-query-parameters-part-1/
only works if we connect to same server such as different instances in SQL.
How can we apply this when we have to switch between MySQL and SQL servers.
Thanks,
Nusrath