Forum Discussion
cl27274
Feb 03, 2021Copper Contributor
Parameterized Sql Statement: Expression.Error: This native database query isn't currently supported
Hello, I have a query in excel that loads without any issues. I have tried adding parameters to the query(SQL - statement), but this leads to this error: Expression.Error: This native database qu...
- Feb 04, 2021
That could be
... pParText = fParameter(ParameterTable,From), Source = Sql.Database(Server, Database, [Query = "CALL SALES_BY_CATEGORY_1234 ( '51', " & pParText & " '2020-12-31','',......)"]), nextStep, ...
Another way is as here Chris Webb's BI Blog: Passing Parameters To SQL Queries With Value.NativeQuery() In Power Query And Power BI Chris Webb's BI Blog (crossjoin.co.uk) but in general they are not too far from each other.
SergeiBaklan
Feb 04, 2021Diamond Contributor
That could be
...
pParText = fParameter(ParameterTable,From),
Source = Sql.Database(Server, Database,
[Query = "CALL SALES_BY_CATEGORY_1234 ( '51', " & pParText & " '2020-12-31','',......)"]),
nextStep,
...
Another way is as here Chris Webb's BI Blog: Passing Parameters To SQL Queries With Value.NativeQuery() In Power Query And Power BI Chris Webb's BI Blog (crossjoin.co.uk) but in general they are not too far from each other.
cl27274
Feb 04, 2021Copper Contributor
I'll accept this as the best response and start a new thread about the new issue I'm having
- SergeiBaklanFeb 04, 2021Diamond Contributor
cl27274 Thank you. Didn't find your new question so far.
- cl27274Feb 04, 2021Copper ContributorI have posted it and tagged you.