# Using the filter on the visualization page

**URL:** <https://discuss.elastic.co/t/using-the-filter-on-the-visualization-page/42281>\
**Category:** Kibana\
**Created:** [February 20, 2016, 12:05am UTC](https://discuss.elastic.co/t/using-the-filter-on-the-visualization-page/42281 "2016-02-20T00:05:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rheng](https://avatars.discourse-cdn.com/v4/letter/r/ccd318/32.png) [@rheng](https://discuss.elastic.co/u/rheng)\
**Post date:** [February 20, 2016, 12:05am UTC](https://discuss.elastic.co/t/using-the-filter-on-the-visualization-page/42281/1 "2016-02-20T00:05:50Z")

</div>

I'm trying to break down information by months. I'd like to group things that occurred between 1 month and now, 3months to 1 month, etc.

I could use the Date Range, but i'd like to use the filter since i could customize the label on my visualization.  
The problem is, i can't seem to find the correct syntax to do this:

date: [now-1M/M TO now]  
date: [now-3M/M TO now-1M/M]

---

<div class="post-metadata">

**Author:** ![rheng](https://avatars.discourse-cdn.com/v4/letter/r/ccd318/32.png) [@rheng](https://discuss.elastic.co/u/rheng)\
**Post date:** [February 20, 2016, 3:48am UTC](https://discuss.elastic.co/t/using-the-filter-on-the-visualization-page/42281/2 "2016-02-20T03:48:09Z")

</div>

I figured it out.

---

<div class="post-metadata">

**Author:** ![tbragin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tbragin/32/45166_2.png) [@tbragin](https://discuss.elastic.co/u/tbragin)\
**Post date:** [February 20, 2016, 3:31pm UTC](https://discuss.elastic.co/t/using-the-filter-on-the-visualization-page/42281/3 "2016-02-20T15:31:12Z")

</div>

What was the solution?

---

<div class="post-metadata">

**Author:** ![rheng](https://avatars.discourse-cdn.com/v4/letter/r/ccd318/32.png) [@rheng](https://discuss.elastic.co/u/rheng)\
**Post date:** [February 20, 2016, 6:10pm UTC](https://discuss.elastic.co/t/using-the-filter-on-the-visualization-page/42281/4 "2016-02-20T18:10:30Z")

</div>

The syntax I had was correct. I was working on a different index that didn't have that field name. So it was my mistake.

For filters:

date:[now-1M/M TO now] is the correct syntax to display events 1 month ago.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 2:01pm UTC](https://discuss.elastic.co/t/using-the-filter-on-the-visualization-page/42281/5 "2017-07-06T14:01:30Z")

</div>


