# How to warn the user in a date filter about the allowed date range

**URL:** <https://community.omni.co/t/how-to-warn-the-user-in-a-date-filter-about-the-allowed-date-range/453>\
**Category:** Workbooks\
**Tags:** dashboards, filtering\
**Created:** [April 15, 2026, 5:11pm UTC](https://community.omni.co/t/how-to-warn-the-user-in-a-date-filter-about-the-allowed-date-range/453 "2026-04-15T17:11:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Isma](https://avatars.discourse-cdn.com/v4/letter/i/4af34b/32.png) [@Isma](https://community.omni.co/u/Isma)\
**Post date:** [April 15, 2026, 5:11pm UTC](https://community.omni.co/t/how-to-warn-the-user-in-a-date-filter-about-the-allowed-date-range/453/1 "2026-04-15T17:11:42Z")

</div>

Is there a way to warn or prevent that the user in a dashboard can not select more than 6 months in a date filter?

Here for example I would like to have at least that warning.

 ![image](https://canada1.discourse-cdn.com/flex004/uploads/omni/original/1X/4360a58d855ad13297e48a332c78591fb09d7a39.png)

Thank you.

---

<div class="post-metadata">

**Author:** ![cade](https://avatars.discourse-cdn.com/v4/letter/c/fbc32d/32.png) [@cade](https://community.omni.co/u/cade)\
**Post date:** [April 16, 2026, 11:17pm UTC](https://community.omni.co/t/how-to-warn-the-user-in-a-date-filter-about-the-allowed-date-range/453/2 "2026-04-16T23:17:43Z")

</div>

Hi @Isma thank you for the post and question!

We don’t have a way to do a “warning” in the filter modal, but I think you could use some of our model level parameters like `always_where_sql` or `always_where_filter` to set a hard coded filter for that field to keep the range to what you desire

Check out these docs [here](https://docs.omni.co/modeling/topics/parameters/always-where-sql) on how to set that up. Hope this is helpful 🙂
