measure: new measure {
type: sum
sql: ${TABLE}.{% parameter new_parameter %} ;;
}
But when I try and run these I get a message to the affect of “Name a not found inside of Table”. This is in spite of the measures used working fine in other contexts. Any ideas why this may be happening? Help is greatly appreciated!
Thanks for the reply @Dawid . To clarify, “a”, “b”, “c” are measures created in the same view where I’m creating the parameter. I’ve successfully used them in other explores/visuals, it is only in the parameter context they don’t work. Does this mean measures created in this way can’t be used in parameters?
OK, thanks for explaining @Dawid . Clearly confused myself reading the official docs. Last question; is there a way round this without the measure being in the table as opposed to just the view?
You’re losing the dynamic part because you can’t inject the name of the parameter, which means every time you add a new allowed_value, you have to remember to add another elsif..