# Date Filter

**URL:** <https://discuss.elastic.co/t/date-filter/337023>\
**Category:** Kibana\
**Created:** [June 28, 2023, 1:13am UTC](https://discuss.elastic.co/t/date-filter/337023 "2023-06-28T01:13:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kumar\_Abhinav](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kumar_abhinav/32/122208_2.png) [@Kumar\_Abhinav](https://discuss.elastic.co/u/Kumar_Abhinav)\
**Post date:** [June 28, 2023, 1:13am UTC](https://discuss.elastic.co/t/date-filter/337023/1 "2023-06-28T01:13:44Z")

</div>

I am trying to see how many count of items named from the data index has expiry date less than 30 days from now and also the count of items having expiry date till the next 30 days. I have tried a lot in TSVB with three different filters but the correct numbers are not displaying to show it. Can you able to guide me on this?

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/1/51dc975def328d2b6cae104aae49a221b6bf2b09.png)  
This is the number i am getting.  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/b/db0f18240ec458a985ae77dd55a44217734609a4.png)  
I have changed my logic to +/- 30d to +/- 1d.. but still, my values remain the same.  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/3/83f5e6780beca3619b4b2e19ec5e201f570ba3a4.png)  
Please guide what to do.

---

<div class="post-metadata">

**Author:** ![markov00](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/markov00/32/33316_2.png) [@markov00](https://discuss.elastic.co/u/markov00)\
**Post date:** [July 25, 2023, 9:01am UTC](https://discuss.elastic.co/t/date-filter/337023/2 "2023-07-25T09:01:23Z")

</div>

Hi, sorry for being late on this, have you already fixed this issue? if no please let me know and I can try to help you here

---

<div class="post-metadata">

**Author:** ![Kumar\_Abhinav](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kumar_abhinav/32/122208_2.png) [@Kumar\_Abhinav](https://discuss.elastic.co/u/Kumar_Abhinav)\
**Post date:** [July 25, 2023, 6:30pm UTC](https://discuss.elastic.co/t/date-filter/337023/3 "2023-07-25T18:30:26Z")

</div>

NO. I am still facing this issue. Please guide me on this issue.

---

<div class="post-metadata">

**Author:** ![markov00](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/markov00/32/33316_2.png) [@markov00](https://discuss.elastic.co/u/markov00)\
**Post date:** [July 26, 2023, 7:11am UTC](https://discuss.elastic.co/t/date-filter/337023/4 "2023-07-26T07:11:23Z")

</div>

Could you double check if you have selected "Entire time range" Under the Date timerage mode in the "Panel Options"

 ![Screenshot 2023-07-26 at 09.07.02](https://us1.discourse-cdn.com/elastic/original/3X/8/9/89738d4d8676d4c1d74c24a5567d0de6c7bd456f.png)

If not, TSVB takes only the time bucket of the current time window interval and apply the calculation only to that interval. In your case it looks like the date bucket used are daily buckets, and that's why it doesn't change much.

---

<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:** [August 23, 2023, 7:12am UTC](https://discuss.elastic.co/t/date-filter/337023/5 "2023-08-23T07:12:02Z")

</div>

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