View the original community article here
Last tested: Nov 1, 2017
You'll want to use the _filters['field_name']
syntax. Note this does not work in sql
Example:
filter: number_filter {
type: number
}
dimension: company_number {
html: {% if _filters['number_filter'] == "2" %}
{{value}}
{% else %}
Not 2
{% endif %}
;;
sql: ${company} ;;
}
This content is subject to limited support.