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

Function numeric

numeric( attribute, operatorA?, valueA?, operatorB?, valueB?, config?): Filter

Creates a custom numeric filter that filters for given attribute values.

Parameters

ParameterTypeDescription
attributeAttributeNumeric attribute to filter
operatorA?stringFirst operator
valueA?numberFirst value
operatorB?stringSecond operator
valueB?numberSecond value
config?BaseFilterConfigOptional configuration for the filter

Returns

Filter

A custom numeric filter of the given attribute

Example

Filter for items where the cost is greater than 100 and less than 200 from the Sample ECommerce data model.

filterFactory.numeric(
  DM.Commerce.Cost,
  NumericOperators.From,
  100,
  NumericOperators.To,
  200
)
Last Updated: