> For the complete documentation index, see [llms.txt](https://docs.inforiver.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.inforiver.com/super-filter/filter-types/1.-date-filter/iii.relative-date.md).

# iii.Relative Date

The **Relative Date** filter dynamically filters data based on a date range relative to today or a specified reference date. It allows users to filter periods such as the "last 3 months," "next 7 days," or "this year," ensuring the data remains up to date without manual adjustments.

{% embed url="<https://www.youtube.com/watch?index=6&list=PLisLVA_RnBO5QEJvAbyNHwfdboQVbF7LC&v=QbUy8s7cYQU>" %}
Video 1: Relative Date
{% endembed %}

## How to Enable Relative Date:

{% stepper %}
{% step %}
In the **Visualizations pane**, add a **Date field** to the **Category field well**. Ensure the field is set to **Date** (not Date Hierarchy).
{% endstep %}

{% step %}
Navigate to the **Format Visual** section in the **Visualizations Pane**
{% endstep %}

{% step %}
Under the General section in Date Filter, select **Relative Date** as the **Selection Style**.

<figure><img src="/files/WwNAF7r6Sg4GgKJf434a" alt="" width="188"><figcaption><p>Image 1: Relative date set as selection style</p></figcaption></figure>
{% endstep %}

{% step %}
This displays a dropdown with relative date filter options, allowing you to configure filters based on dynamic time ranges such as the last 7 days, this month, or the next 3 months.

<figure><img src="/files/ty56uhGjfjfk2aX4YzcA" alt="" width="261"><figcaption><p>Image 2: Relative Date filter</p></figcaption></figure>
{% endstep %}
{% endstepper %}

> **Example:**
>
> A sales manager wants to track sales from the past month. Using the relative date filter, they can set the dashboard to display data for the last 1 month. This ensures the report dynamically updates each day to reflect the most recent month of sales.
>
> <p align="center"><img src="/files/Xho025M0LNnSJG3G355U" alt=""></p>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.inforiver.com/super-filter/filter-types/1.-date-filter/iii.relative-date.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
