sisense.com
✅ You are viewing documentation for the latest version of Compose SDK.
Version:

Function union

union(filters, config?): Filter

Creates a filter representing the union of multiple filters on the same attribute. The resulting union filter filters on items that match any of the given filters.

To create 'or' filters using different attributes, use the or() function.

Parameters

ParameterTypeDescription
filtersFilter[]Filters to union. The filters must all be on the same attribute.
config?BaseFilterConfigOptional configuration for the filter

Returns

Filter

A filter instance

Example

Filter for countries that start with the letter 'A' or end with the letter 'A' in the Sample ECommerce data model.

filterFactory.union([
  filterFactory.startsWith(DM.Country.Country, 'A'),
  filterFactory.endsWith(DM.Country.Country, 'A'),
])
Last Updated: