cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
raghads Helper I
Helper I

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

Accepted Solutions
v-piga-msft Resident Rockstar
Resident Rockstar

Re: Change Stored Procedure Parameters based on Date Slicer Values

Hi @raghads,

 

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

Re: Change Stored Procedure Parameters based on Date Slicer Values

Hi @raghads,

 

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

raghads Helper I
Helper I

Re: Change Stored Procedure Parameters based on Date Slicer Values

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

Helpful resources

Announcements
New Ranks Launched March 24th!

New Ranks Launched March 24th!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power BI Community!

‘Better Together’ Contest Finalists Announced!

‘Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Arun 'Triple A' Event Video, Q&A, and Slides

Arun 'Triple A' Event Video, Q&A, and Slides

Missed the Arun 'Triple A' event or want to revisit it? We've got you covered! Check out the video, Q&A, and slides now.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors