Forum Discussion
Creating a template and managing a MySQL DB Name as a parameter
- Anonymous9 years ago
Anonymous,
You can create a database name parameter in your PBIX file following the instructions in this blog, then add a new blank query and paste the code below to the Advanced Editor of the blank query.let Source = MySQL.Database("Server", ""&dbname&"", [ReturnSingleDatabase=true]), TTable = Source{[Schema=""&dbname&"",Item="TableName"]}[Data] in TTable
After that, create Power BI template following the guide in the blog below.
https://powerbi.microsoft.com/en-us/blog/deep-dive-into-query-parameters-and-power-bi-templates/
Regards,
Lydia
I have found the solution. I will provide information shortly.
- Anonymous9 years agoNot applicable
Anonymous,
You can create a database name parameter in your PBIX file following the instructions in this blog, then add a new blank query and paste the code below to the Advanced Editor of the blank query.let Source = MySQL.Database("Server", ""&dbname&"", [ReturnSingleDatabase=true]), TTable = Source{[Schema=""&dbname&"",Item="TableName"]}[Data] in TTable
After that, create Power BI template following the guide in the blog below.
https://powerbi.microsoft.com/en-us/blog/deep-dive-into-query-parameters-and-power-bi-templates/
Regards,
Lydia