# Including date range in view

**URL:** <https://discuss.elastic.co/t/including-date-range-in-view/86865>\
**Category:** Kibana\
**Created:** [May 23, 2017, 9:08pm UTC](https://discuss.elastic.co/t/including-date-range-in-view/86865 "2017-05-23T21:08:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mickael\_fraga](https://avatars.discourse-cdn.com/v4/letter/m/8baadc/32.png) [@Mickael\_fraga](https://discuss.elastic.co/u/Mickael_fraga)\
**Post date:** [May 23, 2017, 9:08pm UTC](https://discuss.elastic.co/t/including-date-range-in-view/86865/1 "2017-05-23T21:08:08Z")

</div>

I am creating a view (visual builder)  
And this view has specific rules to add a value  
In which the fields are equal: status = 1 and status = 2 and status = 5 and the lowest date prior to the current month.

That way I can get the status

Status\_of\_title: = 1 & status\_of\_the\_title: = 2 & status\_of\_the\_title: = 5 & {"Range": {"capture dt": {"lte": "now-1M / M"}}} \<- fail  
I would like to place the date constraint ... type this  
{"Range": {"capture dt": {"lte": "now-1M / M"}}}

Someone gives you a hand or a  
direction

---

<div class="post-metadata">

**Author:** ![LeeDr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leedr/32/9289_2.png) [@LeeDr](https://discuss.elastic.co/u/LeeDr)\
**Post date:** [May 26, 2017, 3:37pm UTC](https://discuss.elastic.co/t/including-date-range-in-view/86865/2 "2017-05-26T15:37:29Z")

</div>

Hi Mickael,

I think you're not getting a response very quickly because we don't understand your question. It might help if you can post a sample set of data that someone could put into their Kibana using the dev console.

Thanks,  
Lee

---

<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:** [June 23, 2017, 3:37pm UTC](https://discuss.elastic.co/t/including-date-range-in-view/86865/3 "2017-06-23T15:37:33Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
