Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
hello!
Tell me please how use parameter in Mysql connector query?
I use Mysql connector in Powerbi for get data from Mysql base
= MySQL.Database("mysqlserver1.local", "base", [Query=" select.............................. where queue=1", ReturnSingleDatabase=true])
I want to create a parameter and substitute different values instead of 1 in the queue
Thank you advace
Hi @aignn ,
How about the result after you follow the suggestions mentioned in my original post?Could you please provide more details about it If it doesn't meet your requirement?
Best regards,
Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @aignn ,
We can create a parameter called "id_parameter" and use text type, then use it as following formula:
= MySQL.Database("localhost", "testdb", [ReturnSingleDatabase=true, Query="select * from testdb.tablename where category_id = " & id_parameter])
Please also refer to this thread about the warning "Permission is required to run this native database query".
Best regards,
Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
99 | |
76 | |
64 | |
58 |
User | Count |
---|---|
148 | |
113 | |
97 | |
84 | |
67 |