User defined parameter default value

Hey guys,
I am trying to find a solution for my problem:

We have a parameter used in different explores:

view: country {
  label: "Country"

  parameter: country_code {
    label: "Code"
    type: unquoted

    default_value: ""
    allowed_value: {
      label: "Country 1"
      value: "country_1"
    }
    allowed_value: {
      label: "Country 2"
      value: "country_2"
    }
    allowed_value: {
      label: "Country 3"
      value: "country_3"
    }
  }

We would like that for some users the parameter has one country as default value, for others another one. The complete option list should be visible for all users, only default value should differ.

I thought the best approach for this is to use an user attribute. But it seems that the default_value of a parameter object does nor support anything else than strings.

Does anyone have any ideas how to solve this problem?

Thank you

0 7 2,123
7 REPLIES 7
Top Labels in this Space
Top Solution Authors