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.
Requirements
- A Displayr document containing a data set.
- A filter variable. See: How to Create a Simple Filter
- 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 Page 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. To filter specific outputs in View mode you can use Controls, see: How to Create a Combo Box Filter and How to Create a Combo Box (Drop-Down Control) With a Dynamic List.
See Also
How to Create a Combo Box Filter
How to Create a List Box Filter
How to Create a Text Box Filter
How to Tag a Variable as a Filter
How to Create a Complicated Filter
How to Create a Binary Filter from Selected Data
How to Build Tables that Automatically Filter to the Latest Periods
How to Connect Filters to Controls Using R Code
How to Create a Combo Box (Drop-Down Control) With a Dynamic List
Comments
0 comments
Article is closed for comments.