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

Function endsWith

endsWith( attribute, value, config?): Filter

Creates a filter to isolate attribute values that end with a specified string.

Matching is case insensitive.

You can optionally use wildcard characters for pattern matching, as described in the like() function.

Parameters

ParameterTypeDescription
attributeAttributeText attribute to filter on
valuestringValue to filter by
config?BaseFilterConfigOptional configuration for the filter

Returns

Filter

A filter instance

Example

Filter for countries in the Sample ECommerce data model where the country name ends with 'land'. This filter matches countries like 'Ireland' and 'Iceland'.

filterFactory.endsWith(DM.Country.Country, 'land')
Last Updated: