Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Hi All,
I am looking into a way of passing a selected element (from a drop down) to stored procedure as a parameter.
(means the stored procedure will execute on the change drop down element action).
How I can achieve this?
I am calling a stored procedure like:
let Source = Sql.Database("mydatabaseinstance", "AdventureWorks2012", [Query="DECLARE @SP VARCHAR(100) = 'dbo.uspGetEmployeesByJobTitle @JobTitle = ''Senior Tool Designer'''#(lf)EXEC (@SP)"]) in Source
-------------------------------------------
I have also gone through this behavior of calling a stored procedure by passing parameters.
but I believe.... through this way, we can achive different results on the Queries side..... not on the actual Reports side because they are not runtime parameters.
(So this behavior is not suitable in what I want).
Thanks
Hello @azizimranz,
I am came across the same proble, Need a parameter of SP from the user as drop down list like as SSRS rport.
Unfortunatliy we have to laod all the data then we can apply the filter.
Thank You
Hi @azizimranz,
If you were attempting to pass selected value from slicer to stored procedure as a parameter, this is not available. It is not supported to pass slicer selection to Power Query. To dynamically change dataset loaded into desktop, we have to use query parameter as you mentioned above.
through this way, we can achive different results on the Queries side..... not on the actual Reports side because they are not runtime parameters.
Editing the parameter value, both query side and report side will be changed.
Best regards,
Yuliana Gu
Thanks for the clarification and clearly saying that 'passing a runtime parameter from the slicer is not available'.
I might have to change the stored procedure in a way that it would return all the data and we then filter it down as per the dropdown selection.
Thanks
Imran
Did you ever get this to work, I have the same problem.
Thanks.
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
92 | |
87 | |
84 | |
65 | |
49 |
User | Count |
---|---|
140 | |
114 | |
110 | |
59 | |
59 |