Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi,
I am new to Power BI.
I have a stored procedure which I connect to through Excel. I am trying to do the same in BI but I get the below error message:
Details: "Microsoft SQL: Incorrect syntax near '?'."
The stored procedure needs the date parameter to run, so I understand the error, however how do I set the date parameters in BI?
I am hoping you can help.
Many thanks
Rory
Solved! Go to Solution.
@saundr3,
Please check my reply in the following similar thread. If you still have questions, please post the SQL statement you input in Power BI Desktop.
https://community.powerbi.com/t5/Integrations-with-Files-and/parameters-to-SP-or-Sql-query/td-p/5773...
Regards,
Lydia
@saundr3,
Please check my reply in the following similar thread. If you still have questions, please post the SQL statement you input in Power BI Desktop.
https://community.powerbi.com/t5/Integrations-with-Files-and/parameters-to-SP-or-Sql-query/td-p/5773...
Regards,
Lydia
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.