Fields - Filter
Filter
Filters can be a part of Dashboard, Model and View.
One dashboard filter can be applied to several reports at the same time. A report is only affected by a dashboard filter if the report has a listen_filters parameter pointing to that dashboard filter.
fields: #begin of fields section (inside View, Model or Dashboard)
- filter: filter_name
hidden: false
label: 'filter label in UI'
description: 'description in UI'
result: filter_result
default:
- 'filter expression'
- 'filter expression'
- ...
Filter Parameters
Name | Type | Default | Description |
---|---|---|---|
filter* | string | - | Field name |
label | string | - | Override field name in UI |
hidden | boolean | false | Hide field in UI |
description | string | - | Field description in UI |
result | enum | - | The result of the filter must be the same as the result of the mapped fieldTo filter dimensions, measures and calculations of type string or number:
To filter dimensions of type yesno_is_true:
To filter dimensions based on the corresponding Timeframe:
|
default | string[] | - | List of filter expressions that will be applied to this filter by default |