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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Ankita_Rane
Regular Visitor

execute the store procedure by parameter value passed through URL

I have a store procedure connected to Power Bi. The store procedure requires Parameter as Name and Gender to filter the records accordingly. I have created two Parameter in Power BI as “ParameterName” and “ParameterGender” and based on this parameter I should able to filter the store procedure dynamically.

Please find the query for Store Procedure to execute in Power BI:

let

    Source = Sql.Database("LINCOIN\SQL2014", "POWERBIDS", [Query="EXEC POWERBIDS.dbo.SelectAllCustomers @name='"& ParameterName & "', @Gender='"& ParameterGender & "';"])

in

    Source

Now when I pass the value in Parameters then the store procedure is executed successfully and require output is seen in the table.

3.png

Now I want to achieve the same by-passing Parameters value through URL and filter the store procedure based on values passed in URL.

For Example: I create below URL to pass the ParameterName value as James and ParameterGender value as M

https://app.powerbi.com/groups/me/reports/ee8b08f7-2f92-4301-8e0e-15bfccf5fa3a/ReportSection5b46f510...

The filters are applied to the report as shown in below screenshot but the store procedure is not filter according to the parameter passed through URL.

2.jpg

Please let me know how to execute the store procedure by parameter value passed through URL

1 REPLY 1
AnkitBI
Solution Sage
Solution Sage

Currently there is no option to pass parameters from Reports pages/dashboards to your Power Query. Meaning we can't extract data from source based on anything passed from report page.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.