Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
pjr1221
Frequent Visitor

Dynamic parameter invoke by slicer

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

 

parameter.PNG

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.

 

1 ACCEPTED SOLUTION
v-yuta-msft
Community Support
Community Support

@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.

View solution in original post

4 REPLIES 4
v-yuta-msft
Community Support
Community Support

@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? 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors