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

# newAbsoluteGranularityDateFilter()

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

> **Alpha API.** Initial API, highly likely to change outside SemVer. Don't build on it in production. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Creates a new absolute date filter with granularity that is unbounded at the start.

**Signature:**

```typescript
export declare function newAbsoluteGranularityDateFilter(dateDataSet: ObjRef | Identifier, granularity: DatePeriodGranularity, from: undefined, to: DatePeriodLiteral, options?: IAbsoluteGranularityDateFilterOptions): IAbsoluteGranularityDateFilter;
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| dateDataSet | [ObjRef](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.objref/index.md) \| [Identifier](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.identifier/index.md) | ref or identifier of the date data set to filter on |
| granularity | [DatePeriodGranularity](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.dateperiodgranularity/index.md) | granularity of the period in 'to' |
| from | undefined | undefined, the range is unbounded at the start |
| to | [DatePeriodLiteral](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.dateperiodliteral/index.md) | last period of the range, see [DatePeriodLiteral](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.dateperiodliteral/index.md) |
| options | [IAbsoluteGranularityDateFilterOptions](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.iabsolutegranularitydatefilteroptions/index.md) | _(Optional)_ local identifier and empty values handling of the filter |

**Returns:**

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