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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
joelsennhauser
Regular Visitor

Trigger stored procedure with dynamic parameter from dashboard input

Hello Guys

 

Is there a way to trigger stored procedures with a dynamic parameter that are entered by the user in the dashboard?

The data should be updated in real time on the dashboard.

The parameters come from a table in the DB and should trigger the stored procedure when selected. Of course, the end user should be able to access them via Power BI Service.

Thanks,
Joel

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @joelsennhauser ,

I think you can take advantage of the Power BI integration with Dynamic M Query Parameters.
First you can create parameters in Power Query, for dynamic M query parameters you can check this document: Dynamic M query parameters in Power BI Desktop - Power BI | Microsoft Learn

vyilongmsft_2-1712892036957.png

After defining the parameters, bind them to the e.g. slicer on the Power BI report. This binding allows end users to dynamically select parameter values directly from the dashboard. The selected values can then be passed to the stored procedure.
To call a stored procedure with dynamically selected parameters, you need to reference those parameters in the M query.

 

 

 

Best Regards

Yilong Zhou

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

2 REPLIES 2
Vinay_PBI
New Member

Thanks for the input.


It works well in Power BI desktop.
but when this is published to Power BI service, it is not.
any suggestions ?


Anonymous
Not applicable

Hi @joelsennhauser ,

I think you can take advantage of the Power BI integration with Dynamic M Query Parameters.
First you can create parameters in Power Query, for dynamic M query parameters you can check this document: Dynamic M query parameters in Power BI Desktop - Power BI | Microsoft Learn

vyilongmsft_2-1712892036957.png

After defining the parameters, bind them to the e.g. slicer on the Power BI report. This binding allows end users to dynamically select parameter values directly from the dashboard. The selected values can then be passed to the stored procedure.
To call a stored procedure with dynamically selected parameters, you need to reference those parameters in the M query.

 

 

 

Best Regards

Yilong Zhou

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors