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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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