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

Function like

like( attribute, value, config?): Filter

Creates a filter to isolate attribute values that match a specified string pattern.

The pattern can include the following wildcard characters:

  • _: Matches a single character
  • %: Matches multiple characters

To search for a literal underscore (_) or percent symbol (%), use the backslash (``) escape character.

Matching is case insensitive.

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 from the Sample ECommerce data model where the country name starts with an 'A' and ends with an 'a'. This filter matches countries like 'Argentina' and 'Australia'.

filterFactory.like(DM.Country.Country, 'A%a')
Last Updated: