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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
VIKPOWERBI
Frequent Visitor

How to pass slicer values to a stored procedure?

The tables are massive, I just cannot bring all of it and filter after.

 

How can I pass slicer values to stored procedure and based on user selection it executes?

 

I am using ODBC

4 REPLIES 4
amitchandak
Super User
Super User

@VIKPOWERBI , There is a method, But mostly for SQL server. check if that can work for ODBC

https://www.c-sharpcorner.com/article/execute-sql-server-stored-procedure-with-user-parameter-in-pow...

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

That works on ODBC but it is not what I need.

 

I need the data to change based on user input. So for example if he choose to change slicer ID:14 it will load the query to show all rows with ID:14. I want to pass the slicer value to the stored procedure.

Hi @VIKPOWERBI,

You can refer the content in the following links to get it:

How to update M query parameters based on filters and slicers

Use Slicers for Query Parameters in PowerBI

Best Regards

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

Hello,

 

I have researched a lot on this issue and it seems there is no way to do what I need to do.

 

I tried M query parameters before but they don't support ODBC.

The 2nd link looked interesting hack but at the end It seems I can only use it on power BI desktop.

 

VIKPOWERBI_0-1621833138792.png

 

Helpful resources

Announcements
ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.