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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Kieran
Advocate II
Advocate II

Referencing one parameter within another parameter within Power Query

Hi,

How do I reference one parameter within another parameter within Power Query...

 

For example I want to create a parameter representing an [Environment] representing the values "DEV", "UAT" and "PRD".

 

I also want to create another parameter representing the [Location] e,g, "www.mySales.com", "www.myPurchases.com", "www.myNominal.com"

 

The the third parameter references the first two parameters and is used in a data source definition.

Where for example the third parameter [FullPath] could equal "www.mySales.com\DEV" for instance.

 

So I was hoping to define the third parameter in the following way...

[FullPath] = [Location] & "\" & [Environment]

 

Can any one help?

 

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Hi @Kieran,

 

After defining the first two parameters, you must create a list by concatenating them.

let
Source = Location& "\" & Enviroment,
    #"Converted to List" = {Source}
in
    #"Converted to List"

And then create the third parameter by choosing the Query option in Suggested Values, and this new list as Query.

 

Regards.

View solution in original post

Anonymous
Not applicable

@Kieran,

 

When you change any of the parameters you must apply changes to refresh the list that concatenates them, and then this value is refreshed in the third parameter, but you have to select this refreshed value by displaying the drop down for that parameter.

 

Regards.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @Kieran,

 

After defining the first two parameters, you must create a list by concatenating them.

let
Source = Location& "\" & Enviroment,
    #"Converted to List" = {Source}
in
    #"Converted to List"

And then create the third parameter by choosing the Query option in Suggested Values, and this new list as Query.

 

Regards.

Hi,

When I change the first parameter and second parameter, the third parameter (based on the query option you stated) does not update to reflect the new contents of the first or second parameter,

 

LocationEnvironmentParameter

"www.myPurchases.com/UAT" meta [IsParameterQuery=true,
 ExpressionIdentifier=LocationEnvironmentList, Type="Text", 
IsParameterQueryRequired=false]

LocationEnvironmentList

let
Source = Location & "\" & Environment,
    #"Converted to List" = {Source}
in
    #"Converted to List"

Location

"www.myPurchases.com" meta [IsParameterQuery=true,
 List={"www.mySales.com", "www.myPurchases.com", 
"www.myNominal.com"}, DefaultValue="www.mySales.com", Type="Text", 
IsParameterQueryRequired=true]

Environment

"UAT" meta [IsParameterQuery=true, List={"DEV", "UAT", "PRD"}, 
DefaultValue="DEV", Type="Text", IsParameterQueryRequired=true]

Any thoughts?

 

I wonder if this relates to the following issue ?

 

https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/9116317-cascading-filter-capabili...

 

Kind Regards,

 

Kieran.

Anonymous
Not applicable

@Kieran,

 

When you change any of the parameters you must apply changes to refresh the list that concatenates them, and then this value is refreshed in the third parameter, but you have to select this refreshed value by displaying the drop down for that parameter.

 

Regards.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.