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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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