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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
0Anna0
New Member

passing date parameter to sql function using bind to parameter

I have a SQL function that accepts 2 parameters: date and number. I've created all the necessary parameters and bound them to the function (that I've imported) inside the advanced editor also, I have two tables with the dates and numbers that I need to pass to the function, and I bind the relevant columns to the parameters. while I'm passing the number parameter everything looks okay and I'm getting the table (date has default value if not inserted to the function) but once I'm choosing the date everything seems to collapse. it seems to me that there is a problem with the conversion of the date while passing to the SQL function. is there someone who came across the same problem? 

 

0Anna0_0-1655813420654.png

 

1 REPLY 1
Anonymous
Not applicable

Hi @0Anna0 ,

 

Here is an offical blog and I hope it could help you solve your problems.

For reference:

Dynamic M query parameters in Power BI Desktop

And here is a video about dynamic M query parameters in Power BI Desktop.

How to update M query parameters based on filters and slicers

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Users online (1,315)