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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
JSiebrecht
Resolver I
Resolver I

Query Parameter not updating form Query List

My parameter with Query as suggested values does not update from the underlying list.

 

I have a parameter "EndpointURL" I want to use in flexibly defining which data source to use for my main queries.

It is supposed to take the value from the query "qEndpointURL" which returns a single value from a LIST (not table oviously).

JSiebrecht_0-1625137550080.png

The value in that list (from query qEndpointULR) in turn depends on the value of a List Parameter ("Environment").
It changes its value correctly depending on the its input parameter.

JSiebrecht_1-1625137872904.png


However, the Query Parameter (EndpointURL) does not update with the changed value from the list if I change the overarching input parameter ("Environment").
It is set to "Include in report refresh", but it does not. 
It always stays on the "Current Value" set initially.

 

Does anyone know how to get query based parameters to refresh with the values of their underlying queries?

Many thanks!

Cheers,

Jan


(I checked "Enable load" as well for easier trouble shooting so I can easier show the current parameter value in the report.)

JSiebrecht_2-1625138143655.png

 

4 REPLIES 4
PaulYellLacki
New Member

I just ran into this.  Basically you want a "parameter" (little p), not a "Parameter". Avoid using the Parameters menu altogether. I take it that is for suggesting values to change manually at some point on the service, not being truly dynamic and automatic.

Instead take your query that creates the "parameter" and right click the value and hit drill down. This will give you a dynamic value that will update on refresh.

PQ Dynamic parameter 03.JPG

You can reference this in a formula step elsewhere or in the advanced editor without first hitting manage parameters. 

In my case I had a date table and I wanted a start date and and end date dynamic parameter to filter the date table, which would be different everyday.

PQ Dynamic parameter 01.JPG

 

And then I just apply a filter on my DimDate table using that (and a 2nd parameter I made):

= Table.SelectRows(DimDate1, each [Cal_Date_DT] >= WoWDate and [Cal_Date_DT] <= LastBusDate)

PQ Dynamic parameter 02.JPG

 

 

Anonymous
Not applicable

Try drilling down on that parameter value in the table (right-click on the value, then select Drill Down. As it stands, You have a list containing a text value, but your query should resolve to a scalar text value. If you just drill down on the list so that you have just the value, the parameter should work.

 

--Nate

Dear Nate ( @Anonymous ),

thanks for your input.
However, Query Parameters require a a List Query, not a list drilled down to a single value.
When doing the later, it query is not availbale anymore in the Manage Parameter, Query selection.
Any previously associated queries get cut.

JSiebrecht_0-1625217953366.png

I'm afraid, this does not do the trick.

JSiebrecht
Resolver I
Resolver I

Additional Finding

I learnt, you should be able to create a new parameter from a query also by right-click on the query and selecting "Convert to Parameter".
I my case, this is greyed out and not available.
Can't figure out why thought.
I have the Dynamic Parameter option checked in the preview menue.
Also double checked the query to make sure the columns of the selected table are of data type TEXT.
I'm at a loss.

JSiebrecht_0-1625147963877.png

 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.