Add (filters)

Adds a new filter to an existing filter object for filtering embedded content using the 3 part naming convention

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


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 ="dates","years","2020"); fil.add("dates","years","2019"); fil.add("dates","years","2018");