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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

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
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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

Top Solution Authors