Add (filters)
add(dimension: string, hierarchy: string, member: string): filter
- Provide the names for the dimension, hierarchy and member that defines the filter.
- You can chain a set of "add" functions to built a composite of filters
Example
The following instantiates a new filter object and attaches a filter for the year 2020 from the dates dimension.
var fil = Filter.create(); fil.add("dates","years","2020");
Here, 3 filters are added for 2018,2019 and 2020
var fil = filter.by("dates","years","2020"); fil.add("dates","years","2019"); fil.add("dates","years","2018");