The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi,
I have a paginated report as below and I want to pass the two Parameters FromCalendarDate and ToCalendarDate to the Date field in my Rates dataset.
My Rates dataset is coming from the below mySQL script and you can see where I have highlighted in yellow is the name of the 2 parameters I want to pass.
I have formatted the value of my parameters so that it is in the format YYYY-mm-dd because when I run the mySQL directly as shown below, you can see I had to hardcode the dates in that format for it work:
and my query validates succesfully:
But when I run the report, my tablix that is linked to my Rates datasouce is coming back empty even when I have set the From and To date as you can see from the snapshot below:
You can also see I have an expression that prints what the From and To are but don't understand why mySQL script returns nothing?
Any help will be appreciated, thanks
Hi @mp390988
Thanks for reaching out to the Microsoft fabric community forum.
Please verify weather the Data type for the parameter is correct
To do that, you could right click on parameter and then on parameter properties
Additionally, test the query in MySQL with parameter values, copy your dataset query into MySQL Workbench, then replace @FromCalendarDate and @ToCalendarDate with the exact values captured from the report’s text box output. Run the query to confirm it returns rows; if it doesn’t, check for possible issues such as incorrect date formatting, missing single quotes around date values, or mismatches caused by any SQL command.
I hope this information helps. Please do let us know if you have any further queries.
Thank you
Hi @mp390988
The approach used seems correct.
Steps: