Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
I've been following the below link to get a SP into Power BI with parameters and managed to get so far but when invoking I'm getting this error message:
I've looked at the query and can't for the life of me see where this error is. I'm sure it's very obvious so any help would be greatly appreciated.
let
SQLSource = (SiteId as number, Location as text, Retailer as text) =>
let
Source = Sql.Database("NAV17-DR2", "PW-Reports", [Query="EXEC [planning].[Supply and Demand Extra Day - Report Data '" & Number.ToText(SiteId) & "', '" & (Location) & "','" & (Retailer) & "' #(lf)#(lf)#(lf)#(lf)#(lf)#(lf)"])
in
Source
in
SQLSource
Thanks in advance
Solved! Go to Solution.
It looks like you are missing the closing square bracket at the end of your stored procedure name.
eg.
let
SQLSource = (SiteId as number, Location as text, Retailer as text) =>
let
Source = Sql.Database("NAV17-DR2", "PW-Reports", [Query="EXEC [planning].[Supply and Demand Extra Day - Report Data] '" & Number.ToText(SiteId) & "', '" & (Location) & "','" & (Retailer) & "' #(lf)#(lf)#(lf)#(lf)#(lf)#(lf)"])
in
Source
in
SQLSource
It looks like you are missing the closing square bracket at the end of your stored procedure name.
eg.
let
SQLSource = (SiteId as number, Location as text, Retailer as text) =>
let
Source = Sql.Database("NAV17-DR2", "PW-Reports", [Query="EXEC [planning].[Supply and Demand Extra Day - Report Data] '" & Number.ToText(SiteId) & "', '" & (Location) & "','" & (Retailer) & "' #(lf)#(lf)#(lf)#(lf)#(lf)#(lf)"])
in
Source
in
SQLSource
Thank you. I realised this shortly after posting but didn't get chance to come back and say!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
15 | |
7 | |
5 | |
3 | |
3 |