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

Function equals

equals( attribute, value, config?): Filter

Creates a filter to isolate attribute values that equal a specified string or number.

When filtering against a string:

  • Matching is case insensitive.
  • You can optionally use wildcard characters for pattern matching, as described in the like() function.

Parameters

ParameterTypeDescription
attributeAttributeText or numeric attribute to filter on
valuenumber | stringValue to filter by
config?BaseFilterConfigOptional configuration for the filter

Returns

Filter

A filter instance

Example

Filter for items in new condition from the Sample ECommerce data model.

filterFactory.equals(DM.Commerce.Condition, 'New')
Last Updated: