Forum Discussion

Kieran's avatar
Kieran
Advocate II
8 years ago
Solved

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" an...
  • Anonymous's avatar
    Anonymous
    8 years ago

    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.

  • Anonymous's avatar
    Anonymous
    8 years ago

    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.