> Documentation index: https://www.gooddata.ai/docs/gooddata-ui/llms.txt lists every page of these docs as Markdown.

# newMeasureValueFilter()

- Package: [@gooddata/sdk-model](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/index.md)
- Kind: function
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-model/src/execution/filter/factory.ts

Creates a new measure value filter.

**Signature:**

```typescript
export declare function newMeasureValueFilter(measureOrRef: IMeasure | ObjRefInScope | LocalIdRef | string, operator: RangeConditionOperator, from: number, to: number, treatNullValuesAs?: number): IMeasureValueFilter;
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| measureOrRef | [IMeasure](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.imeasure/index.md) \| [ObjRefInScope](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.objrefinscope/index.md) \| [LocalIdRef](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.localidref/index.md) \| string | instance of measure to filter, or reference of the measure object; if instance of measure is provided, then it is assumed this measure is in scope of execution and will be referenced by the filter by its local identifier |
| operator | [RangeConditionOperator](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.rangeconditionoperator/index.md) | range operator to use in the filter |
| from | number | the start of the range |
| to | number | the end of the range |
| treatNullValuesAs | number | _(Optional)_ value to use instead of null values |

**Returns:**

[IMeasureValueFilter](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.imeasurevaluefilter/index.md)
