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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

sql editor mysql parameter issue

Hello,

 

I want to use a parameter in my mysql source query. I've created a parameter (Power query Editor) "start" (in my tests it doesn't matter if type is date or text) and trying to retrieve some records. In my mysql query I used: DATE(voorstelling.`aanvangstijd`) >= '" & start & "' ( start has a value of 2022-02-28).

 

It does show me all the records though and not only the records greater or equal then 2022-02-28. After al lot of testing I opend the advanced editor and it showed me the following for the parameter: DATE(voorstelling.`aanvangstijd`) >= '"" & start & ""'

 

Notice there is twice a double quote on both sides, I changed this to:  >= '" & start & "' and suddenly all works well.

 

However, by doing this I'm not able to edit the mysql query anymore, the icon to edit the query has gone.

before:

before.PNG

after:

after.PNG

 

Is this a bug? How can I correct the mysql query so all works well? Ive tested with different variations of quotes to no avail.

 

Thnx Remco

 

1 ACCEPTED SOLUTION
bcdobbs
Community Champion
Community Champion

Hi @Anonymous,

Not a bug as such. It's Power

Query saying "you've changed something in advanced editor so you can't use the wizard for this step any more".

 

Is voorstelling.`aanvangstijd` a date type column in sql?

 

You might also find this useful, from

Chris Webb which is a much nicer way to pass parameters instead of string manipulation: https://blog.crossjoin.co.uk/2016/12/11/passing-parameters-to-sql-queries-with-value-nativequery-in-power-query-and-power-bi/

 

 



Ben Dobbs

LinkedIn | Twitter | Blog

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!

View solution in original post

1 REPLY 1
bcdobbs
Community Champion
Community Champion

Hi @Anonymous,

Not a bug as such. It's Power

Query saying "you've changed something in advanced editor so you can't use the wizard for this step any more".

 

Is voorstelling.`aanvangstijd` a date type column in sql?

 

You might also find this useful, from

Chris Webb which is a much nicer way to pass parameters instead of string manipulation: https://blog.crossjoin.co.uk/2016/12/11/passing-parameters-to-sql-queries-with-value-nativequery-in-power-query-and-power-bi/

 

 



Ben Dobbs

LinkedIn | Twitter | Blog

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.