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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Change Stored Procedure Parameters based on Date Slicer Values

I have a stored procedure which accepts two parameters: from_date and to_date. I want to pass the parameter values to the SP using the Date Slicer. Meaning: I want to send the selected slicer values, start and end date, to the SP's parameters, from_date and to_date.

 

Is there any way to achieve this?

1 ACCEPTED SOLUTION
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Anonymous,

 

I'm afraid that we cannot send the selected slicer values, start and end date, to the SP's parameters in Power BI currently.

 

However, we could create two parameters in Query Editor with Manage Parameters and then you could set your SP's parameters equal to the two parameters you created in Advanced Editor.

 

Capture.PNG

 

More details about Manage Parameter, please refer to the article.

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
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
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Anonymous,

 

I'm afraid that we cannot send the selected slicer values, start and end date, to the SP's parameters in Power BI currently.

 

However, we could create two parameters in Query Editor with Manage Parameters and then you could set your SP's parameters equal to the two parameters you created in Advanced Editor.

 

Capture.PNG

 

More details about Manage Parameter, please refer to the article.

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Okay, Thank you. I hope that it becomes a feature at some point.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors