Skip to main content

Power BI

Needs Votes

Passing Parameters to Power BI through Stored Procedure

Vote (238) Share
Ankit's profile image

Ankit on 02 Aug 2017 10:26:30

There Should be Provision of passing the Parameter to the report like we do in SSRS Reports. There should be any method to execute Stored Procedure by passing the Parameters

Comments (28)
Ankit's profile image Profile Picture

b25321b0 03ee-412e-bbea-8d3a369ad046 on 05 Jul 2020 23:40:13

RE: Passing Parameters to Power BI through Stored Procedure

There is a lot of duplication of Posts for this - I really hope we do see this idea in the future, in the meantime this Idea (20367082) should be seen as the main one spearheading this!

Duplicates below;
https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/10840230-parameters
https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/35874259-allow-for-passing-parameters-like-date-via-slice
https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/34885171-please-pass-value-to-stored-procedure-using-slicer
https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/31655341-stored-procedure-call-with-parameters-passed-from

Ankit's profile image Profile Picture

14df19f2 1fb9-4b53-bc74-cad764e90f80 on 05 Jul 2020 23:33:05

RE: Passing Parameters to Power BI through Stored Procedure

This is desperately needed so as to create robust and efficient on-premise deployable .NET solutions. We have created a web based Analytics solution embedding SSRS Reports using the Report Viewer control. Using the ASP.Net Application front end to collect parameters, these are passed to SSRS Report via the Report Viewer Control to populate the SSRS Template, with the parameters then passed to the SQL Query behind the SSRS Report.
With Power BI being able to be launched in an iframe in our ASP.Net app, we really need a means to pass parameters to the Power BI Model which can be used in the query behind (primarily Direct Query) so that the SQL Query will return only the results based on the parameters. The current option of passing Filter Options to the already populated Power BI is not sufficient in terms of both performance and user based security.

Ankit's profile image Profile Picture

55295eb0 a9d3-4593-9ce5-97458af0c474 on 05 Jul 2020 23:26:00

RE: Passing Parameters to Power BI through Stored Procedure

This needs to work in Direct Query Mode. It should identify slicers and via direct query mode populate the slicers first similar to SSRS does. Then allow user to the slicers and then click on an view report button to execute the stored procedure with the selected slicers (parameters).

Ankit's profile image Profile Picture

271804d2 d82d-4d0b-9a8d-fb67e44a4457 on 05 Jul 2020 23:17:26

RE: Passing Parameters to Power BI through Stored Procedure

please update when this can be expected.

Ankit's profile image Profile Picture

85dfe5ed 0c4b-4ea9-8370-d7d164ce72d6 on 05 Jul 2020 23:17:00

RE: Passing Parameters to Power BI through Stored Procedure

Hopefully this will be implemented soon.

Ankit's profile image Profile Picture

79e178f1 fbc3-4014-bf38-07a2b6d5acc8 on 05 Jul 2020 23:15:59

RE: Passing Parameters to Power BI through Stored Procedure

Nice idea

Ankit's profile image Profile Picture

4030d41c 29f8-4adb-86fd-99f934a35729 on 05 Jul 2020 23:15:58

RE: Passing Parameters to Power BI through Stored Procedure

With the increasing amount of data in many databases, there is increasing demand with my customers to filter the data dynamically and perform other intelligence using stored procedures.

Ankit's profile image Profile Picture

4b75f1c7 384f-4fe8-ac72-55ee36b4f518 on 05 Jul 2020 23:03:06

RE: Passing Parameters to Power BI through Stored Procedure

Qlikview can do it ;)