Create a custom filter based on new options

Hi there,

In tableau you can create sets from values, and then use those sets to define a new list of options from a filter.

I’d like to keep all the original values from the dimension as a filter but add some extra options:

all users

returning users (users with age > 1)

new users age = 0

I‘ve started with creating a parameter but a bit stumped on how to use liquid to achieve this!

view: segment {

parameter: segment {
type: unquoted
allowed_value: {
label: “Installs”
value: “installs”
}

allowed_value: {
label: “Returning”
value: “returning”
}

allowed_value: {
label: “Total”
value: “total”
}

allowed_value: {
label: “d001”
value: “d001”
}

allowed_value: {
label: “d002-d003”
value: “d002-d003”
}

}
allowed_value: {
label: “d061+”
value: “d061+”
}

default_value: “installs”
}
}

Thanks!