The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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.
User | Count |
---|---|
65 | |
61 | |
60 | |
53 | |
30 |
User | Count |
---|---|
181 | |
88 | |
71 | |
48 | |
46 |