Skip to main content

Power BI

Completed

Allow runtime parameters in Power View and/or Power Query

Vote (152) Share
Ramu Kodemala's profile image

Ramu Kodemala on 26 Feb 2015 00:47:50

PowerView does not take input parameters at run time. In order to change the data being presented at runtime the user must use a filter or the query author must use a non-deterministic function in the query (e.g. MyDate = GETUTCDATE () ). Neither approach allows a user to create an optimal request that brings down just the data he/she wants to see. My understanding is that filtering in Power View requires the superset of data to be retrieved before the filter is applied. Nondeterministic functions do not provide the flexibility of parameters. This will be an important feature when dealing with datasets large enough to cause performance and/or stability issues.

Administrator on 07 May 2016 05:00:12

It is now possible to define Parameters in Power BI Desktop, annotating them with metadata (name, description, expected data type and allowed values), reference these parameters from your queries, data model and report elements (labels, etc.). We'll continue making incremental improvements on top of the existing Parameters feature - so if there are specific items that you would like us to do based on this feature, please cast your votes. : )

Comments (33)
Ramu Kodemala's profile image Profile Picture

6fa21322 58ae-4eb0-8582-75bf19bb07e5 on 05 Jul 2020 23:08:43

RE: Allow runtime parameters in Power View and/or Power Query

'@Miguel Llopis How can you achieve this?
We need the user to be able to input the date and refresh.

I am using a import query to have a data set that I've created from a stored procedure. And would like the possibility to pass a date parameter to the stored procedure so that when query executes it returns the appropriate data.

Ramu Kodemala's profile image Profile Picture

c070429c 94a7-40a7-82ca-23e25efcfec3 on 05 Jul 2020 22:52:55

RE: Allow runtime parameters in Power View and/or Power Query

any update on this ?

Ramu Kodemala's profile image Profile Picture

e6f1cfbb 7964-4ed5-b19a-bdfdb0253373 on 05 Jul 2020 22:46:08

RE: Allow runtime parameters in Power View and/or Power Query

Agree, need this input to refresh.

Ramu Kodemala's profile image Profile Picture

f63e448c a8e4-41b7-89f8-34c7b48c3c74 on 05 Jul 2020 22:44:36

RE: Allow runtime parameters in Power View and/or Power Query

Miguel how can you mark this as completed, IMCOMPLETED
we need user input box so end user can type in or select value or text and then run the report on run time. It is not possible to do it in power bi destop as of today.

Ramu Kodemala's profile image Profile Picture

f63e448c a8e4-41b7-89f8-34c7b48c3c74 on 05 Jul 2020 22:44:10

RE: Allow runtime parameters in Power View and/or Power Query

Not completed !!! we need a run time parameter that end user the select at run time

Ramu Kodemala's profile image Profile Picture

ad595229 be31-4687-a835-19c15ef05a64 on 05 Jul 2020 22:38:50

RE: Allow runtime parameters in Power View and/or Power Query

I am using a direct query to have a data set that I create from a stored procedure and would like the capability to pass a date parameter to the stored procedure so that when query executes, it returns that appropriate data.

I have not seen a way to create a parameter that can be passed into a direct query.

I can create the direct query calling the stored procedure but have to hard code the date that I want returned from the data set. which kind of defeats the purpose of having dynamic data when running a report.

I can accomplish the same with static data sets.

Has anyone found a work around for this?

Ramu Kodemala's profile image Profile Picture

56ee5770 1c6e-4a8e-b81b-d57fbdef825d on 05 Jul 2020 22:37:37

RE: Allow runtime parameters in Power View and/or Power Query

Not completed!
there is difference between making the data set parameterized and giving the possibility to change that parameter runtime by end user.

Ramu Kodemala's profile image Profile Picture

2a762bef aa4d-4b46-a609-3e3f5e502f0d on 05 Jul 2020 22:37:14

RE: Allow runtime parameters in Power View and/or Power Query

Not completed, can not select parameter on runtime

Ramu Kodemala's profile image Profile Picture

9e2f477c 3a0e-49ea-91be-22607c1de3bd on 05 Jul 2020 22:31:38

RE: Allow runtime parameters in Power View and/or Power Query

I am able to pass a parameter to a script but I am not seeing how I can have this list of parameter values as a drop down on my report. Can this be done>

Ramu Kodemala's profile image Profile Picture

f42d9e7b 89ab-4e2a-b1e1-ba5ad17c0146 on 05 Jul 2020 22:30:21

RE: Allow runtime parameters in Power View and/or Power Query

Hi, Is it possible to change the variables during run time?i.e, depending on the value from the drop down in the Power BI report, the HANA variable or filter should change.