Function measureBetweenNotEqual
measureBetweenNotEqual(
measure,valueA,valueB,config?):Filter
Creates a filter to isolate a measure value between but not equal to two given numbers or dates.
Parameters
| Parameter | Type | Description |
|---|---|---|
measure | BaseMeasure | CalculatedMeasure | Measure to filter by |
valueA | Date | number | string | Min value. For a date measure pass a Date or an ISO 8601 string.A number is only valid for a numeric measure. |
valueB | Date | number | string | Max value. For a date measure pass a Date or an ISO 8601 string.A number is only valid for a numeric measure. |
config? | BaseFilterConfig | Optional configuration for the filter |
Returns
A filter instance
Example
Filter for categories that have an average revenue greater than 50 and less than 100 in the Sample ECommerce data model.
filterFactory.measureBetweenNotEqual(
measureFactory.average(DM.Commerce.Revenue),
50,
100
)
Example
Filter for categories whose last order falls strictly inside the fourth quarter of 2013 in the Sample ECommerce data model.
filterFactory.measureBetweenNotEqual(
measureFactory.max(DM.Commerce.Date.Days),
new Date('2013-10-01T00:00:00'),
new Date('2013-12-31T23:59:59')
)