Forum Discussion
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?
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.
More details about Manage Parameter, please refer to the article.
Best Regards,
Cherry
2 Replies
- v-piga-msft
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.
More details about Manage Parameter, please refer to the article.
Best Regards,
Cherry
- AnonymousNot applicable
Okay, Thank you. I hope that it becomes a feature at some point.