Hi Sven, just dont add the "Text.ToText" part. it's already text.
let SQLSource = (param1 as text, param2 as date) => let Source = Sql.Database("MyServer", "MyDatabase", [Query="exec [MyDatabase].[dbo].[myProc] '"& param1 & "','" & Date.ToText(param2)&"'"]) in Source in SQLSource
I hope this helps.
Guys do we've a solution for this, I've similar requirement, I've got four drop downs in my report
the navigation is working fine, but I've a requirement to take this to next level i.e. in each drop down I've option to select either one or all, now once the selection is made, I want to use this as a input parameter for a stored procedure which resides in my sql server database.
I understand that in the new query editor I can use the stored procedure but how do I populate the parameter from the drop down visualization i.e. slicer in my case (I can use some other visualization aslo), first will list country, second will have states, third will have city and fourth will have storeIDs, now I can either have all selected or any indivudial values and on the basisi of this select tion, my procedure should execute like below
exec dbo.myproc countryid = @countryvar, stateid = @statevar, cityID = @cityID, storeDi = @storeID
Seems this is a solution for PBI desktop only.
Dont know what will be the benifit of this if we have to modify parameter every time a new range of data is required and then publish the report.
I was looking for similar implementation in service side but no success so far.
Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.
Register by September 5 to save $200
Check out what's new in the Power BI Community!
Continue your learning in our online communities.