Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hi Team ,
I have 5 slicer in my Power BI report. I need to get all the selected value from slicer and concatinate those values in one variable and pass those variable to stored procedure in direct query mode.
I didn't find any link which suggest these scenario.
My Stored procedure is dynamic stored procedure. Dynamic Sql written in the stored procedure to get data from linked server.
Please suggest what are steps to call the dynamic stored procedure in direct query mode.
Solved! Go to Solution.
Hi @Anonymous
I need to verify your request, are you asking for the selected value in the slicer as a parameter to the SQL statement?
If so, I'm afraid Power BI does not currently support this.
If this is acceptable to you, please refer to the following method: you can create the parameter in Power Query and then reference the parameter in the SQL statement. That is, filter the data directly using the parameters in Power Query.
How to create parameters:
Referencing Parameters in M query:
Best Regards,
Yulia Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous
I need to verify your request, are you asking for the selected value in the slicer as a parameter to the SQL statement?
If so, I'm afraid Power BI does not currently support this.
If this is acceptable to you, please refer to the following method: you can create the parameter in Power Query and then reference the parameter in the SQL statement. That is, filter the data directly using the parameters in Power Query.
How to create parameters:
Referencing Parameters in M query:
Best Regards,
Yulia Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.