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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
jrieman
Frequent Visitor

Report Builder Parameters - MySQL

I have a MySQL query which includes a parameter, AND voi.fund_id IN (@fund_id).  After validating the query, my parameter, fund_id, appears in the report data parameter pane and if I right-click on my dataset, then select parameters, I can see that my parameter is mapped to a field in the parameter value section.  When I run the report and enter a parameter when prompted, no data is returned.  If I run my query in MySQL, I can see that the parameter value I provided is present for certain records, yet no records are returned when I run the report within the Report Builder application.  Why doesn't this work?

 

 

mapped...

jrieman_0-1652205718926.png

 

1 ACCEPTED SOLUTION
v-yalanwu-msft
Community Support
Community Support

Hi, @jrieman ;

This weird issue is due to the fact that SSRS is connected to MySQL by ODBC connector; therefore, the query parameters should be defined as ? and their names are Parameter1Parameter2, etc... in order of appearance

https://www.tek-tips.com/viewthread.cfm?qid=1354185

https://stackoverflow.com/questions/65213887/change-database-based-on-parameters-in-ssrs

https://stackoverflow.com/questions/47448139/sss-report-builder-3-0-query-parameter-report-preview


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yalanwu-msft
Community Support
Community Support

Hi, @jrieman ;

This weird issue is due to the fact that SSRS is connected to MySQL by ODBC connector; therefore, the query parameters should be defined as ? and their names are Parameter1Parameter2, etc... in order of appearance

https://www.tek-tips.com/viewthread.cfm?qid=1354185

https://stackoverflow.com/questions/65213887/change-database-based-on-parameters-in-ssrs

https://stackoverflow.com/questions/47448139/sss-report-builder-3-0-query-parameter-report-preview


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

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

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.

Top Solution Authors