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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Stored procedure in powerbi

Hi, I have a stored procedure in my database which accepts parameters.

 

lets just say it is like this: 

execute stored_proc  @param

 

Is it possible to pass the parameter dynamically from a measure/column based on user's selection to the stored procedure?

 

For eg: User selects '5' in the slicer in the powerbi report.

Can I pass this 5 to the stored procdure dynamically?

like this:

>>  execute stored_proc 5

 

Any help is appreciated. Thank you

1 ACCEPTED SOLUTION
v-jayw-msft
Community Support
Community Support

Hi @Anonymous ,

 

I don't think so. The slicer is a visual, the selected value can only be use in measure.

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

View solution in original post

2 REPLIES 2
fmunar1985
Frequent Visitor

I have a doubt about the parameters in BI.
I have the next store exec Proc Proc_Demo where dFecha = @Fecha
Now in the powerbi i've already did a function with the parameter but i can't make a relation with other tble.
What i need to do is bassed on this parameter has a date in other table that i will use as a filter so in that way the user can refresh the store with that date.
Have any idea how to do that?

v-jayw-msft
Community Support
Community Support

Hi @Anonymous ,

 

I don't think so. The slicer is a visual, the selected value can only be use in measure.

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.