Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
Hi all,
I'm having difficulties with stored procedure paramter in Power Bi.
Importing stored procedures with dynamic parameters was successful yesterday.
I referred to this content :
Execute SQL Server Stored Procedure With User Parameter In Power BI
let SQLSource = (vStartDate as text , vEndDate as text, v_Brand as text) => let Source = MySQL.Database("MyServer", "test", [ReturnSingleDatabase=true, Query="call P_DC_REPORT_REPURCHASE_COUNT "& "("& "'"& vStartDate &"'"&","&"'"&vEndDate&"'"&",'"&v_Brand & "'" & ")" & ";"]) in Source in SQLSource
The problem is that the table imported by stored procedure does not contain a date.
Maybe it's becacuse of SQL function GROUP BY (The developer knows the details.). I want to insert the parameter as a slicer in the report and execute INVOKE, overwrite the existing table. Is it possible? I haven't found the relevant references yet.
In conclusion, I want the user send the parameter value to the stored procedure by slicer. And I want to overwrite the data on the existing table, not the new table. I wonder if this is possible, and even after publishing on the web.
Solved! Go to Solution.
@pjr1221 ,
"I want the user send the parameter value to the stored procedure by slicer. And I want to overwrite the data on the existing table, not the new table. I wonder if this is possible, and even after publishing on the web."
<--- I'm afraid the query parameter can't interact with the selected item in slicer. In addtion, if you want to replace the existing table, you need to modify the data source expression in advanced editor.
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@pjr1221 ,
"I want the user send the parameter value to the stored procedure by slicer. And I want to overwrite the data on the existing table, not the new table. I wonder if this is possible, and even after publishing on the web."
<--- I'm afraid the query parameter can't interact with the selected item in slicer. In addtion, if you want to replace the existing table, you need to modify the data source expression in advanced editor.
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@v-yuta-msft Hi,
If that's not possible, why is Stored Procedure used in Power BI ?
Best Reguards,
pjr1221
@pjr1221 ,
I would suggest you to refer to doc below:
https://powerbi.microsoft.com/en-us/blog/deep-dive-into-query-parameters-and-power-bi-templates/
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
That article is from 2016. Have there been no updates to improve the end user experience since then?
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
86 | |
69 | |
66 | |
51 | |
32 |
User | Count |
---|---|
114 | |
99 | |
75 | |
65 | |
40 |