Forum Discussion
MRZ
10 years agoFrequent Visitor
parameters to SP or Sql query
There is probably a simple answer but after looking all over for an answer and trying various methods, the right code still escapes me. The scenario is I have a stored procedure that uses two input ...
- 10 years ago
Thank you so much. Will give this a go as soon as possible.
- 10 years ago
By the way, this work fine. Thanks so much. Now I need to find out how to update the parameters in PowerBI.com so that i can refresh the data as needed. Thanks again.
SvenTexas
9 years agoFrequent Visitor
Thanks Lydia, this worked perfectly. Would you have any idea how to just pass a textual value, instead of date. So Text.ToText or similar?
Firoj
8 years agoNew Member
let
SQLSource = (param1 as text) =>
let
Source = Sql.Database("gx-zwesqld038.database.windows.net", "ITXTestInterikea2", [Query="EXEC [ITX].[ExcludedTransactionsReportByTransactionCount] '"& (param1) & "' #(lf)#(lf)"])
in
Source
in
SQLSource
This will Work
Regards,
Firoj Shaikh