This article describes how to apply a filter to output(s) or page(s) in Displayr. Filters cannot be applied to visualizations, you should instead apply the filter to the data source itself.
This article contains the steps required to apply a filter to the table and chart as shown below...
...to a state where both the table and chart are filtered to show only the respondents aged between 18-39.
- A Displayr document containing a data set.
- A filter variable.
- An output (e.g., table or chart) to filter.
Method 1 - Applying filters in edit mode
- In Edit mode, select the output(s) or page(s) you wish to filter.
- Go to the object inspector > Inputs > FILTERS & WEIGHT > Filter(s) and select the filter variable(s) you wish to use. Once selected the filter variable(s) will appear in green.
If you select multiple values from the same variable (e.g., 18-24 and 25-29) the output will be filtered to all respondents matching either of the conditions (18-24 OR 25-29). It's also possible to select multiple variables, in which case the output will be filtered to match all filter selections (e.g. 18-24 AND Female).
Method 2 - Applying filters in view mode
- In View mode, select the page you wish to filter.
- Go to the Filter menu at the top of the published document and select the desired filter(s).
It's not possible to filter individual outputs in View mode using the Filter menu. If you would like your dashboard viewers to filter specific outputs on the Page then you should create a selector and tie that to those outputs. For more on this see How to Create a Combo Box Filter and How to Create a Combo Box (Drop-Down Control) With a Dynamic List.