cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

Connecting to stored procedure with date parameters

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

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Microsoft
Microsoft

Re: Connecting to stored procedure with date parameters

@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

Community Support Team _ Lydia Zhang
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
Highlighted
Microsoft
Microsoft

Re: Connecting to stored procedure with date parameters

@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

Community Support Team _ Lydia Zhang
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

Helpful resources

Announcements
Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Mark your calendars and join us for our next Power BI Dev Camp!.

Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors