# Discover's Date histogram disappears at "presence of null values"

**URL:** <https://discuss.elastic.co/t/discovers-date-histogram-disappears-at-presence-of-null-values/211901>\
**Category:** Kibana\
**Created:** [December 15, 2019, 8:23am UTC](https://discuss.elastic.co/t/discovers-date-histogram-disappears-at-presence-of-null-values/211901 "2019-12-15T08:23:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomervain](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tomervain/32/57776_2.png) [@tomervain](https://discuss.elastic.co/u/tomervain)\
**Post date:** [December 15, 2019, 8:23am UTC](https://discuss.elastic.co/t/discovers-date-histogram-disappears-at-presence-of-null-values/211901/1 "2019-12-15T08:23:12Z")

</div>

Hi,

I recently upgraded to the brand new **ELK version 7.5** , everything is working great except one annoying issue at the Discover's Pane:

I have an Index which contains 2 years worth of data, each document is timestamped (using the Date field), but documents before a specific date have missing/null values in one of the fields (which is not the Date field).

Whenever i set the Date's range to show data with documents that have null-value in the specific field, the Date histogram (at the top of the Discover's Pane) suddenly disappears.

In other words, the Date histogram is showing only when i filter the index to show only documents with existing value at the specific field.

I couldn't find any setting to solve this in the documentation.  
Before the upgrade i was using **ELK version 6.5** and i had no problem of this kind.

Thanks.

---

<div class="post-metadata">

**Author:** ![Brandon\_Kobel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_kobel/32/14829_2.png) [@Brandon\_Kobel](https://discuss.elastic.co/u/Brandon_Kobel)\
**Post date:** [December 16, 2019, 4:44pm UTC](https://discuss.elastic.co/t/discovers-date-histogram-disappears-at-presence-of-null-values/211901/2 "2019-12-16T16:44:31Z")

</div>

Hey @tomervain, I'm having trouble replicating what you're seeing. Do you have any "filters" specified for Discover?

 ![Screen Shot 2019-12-16 at 8.40.31 AM](https://us1.discourse-cdn.com/elastic/original/3X/5/c/5c65353343d2df39d8a97cf88058d632cff4bd08.png)

Also, if you wouldn't mind clicking the "Inspect" header button, selecting the "Request" tab, and then copying the query and posting it here, it'll help us diagnose further:

 ![inspect-query](https://us1.discourse-cdn.com/elastic/original/3X/9/9/990f04ef5eb89b149a59ba4ae1846fec62a450ff.gif)

---

<div class="post-metadata">

**Author:** ![tomervain](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tomervain/32/57776_2.png) [@tomervain](https://discuss.elastic.co/u/tomervain)\
**Post date:** [December 16, 2019, 5:16pm UTC](https://discuss.elastic.co/t/discovers-date-histogram-disappears-at-presence-of-null-values/211901/3 "2019-12-16T17:16:54Z")

</div>

Hey @Brandon_Kobel, i don't have any filters enabled.  
As you requested, the Request is:

```
{
  "version": true,
  "size": 500,
  "sort": [
    {
      "Date": {
        "order": "desc",
        "unmapped_type": "boolean"
      }
    }
  ],
  "_source": {
    "excludes": []
  },
  "aggs": {
    "2": {
      "date_histogram": {
        "field": "Date",
        "calendar_interval": "1d",
        "time_zone": "Asia/Jerusalem",
        "min_doc_count": 1
      }
    }
  },
  "stored_fields": [
    "*"
  ],
  "script_fields": {},
  "docvalue_fields": [
    {
      "field": "Date",
      "format": "date_time"
    }
  ],
  "query": {
    "bool": {
      "must": [],
      "filter": [
        {
          "match_all": {}
        },
        {
          "range": {
            "Date": {
              "format": "strict_date_optional_time",
              "gte": "2018-12-16T17:11:31.000Z",
              "lte": "2019-12-16T17:11:31.000Z"
            }
          }
        }
      ],
      "should": [],
      "must_not": []
    }
  },
  "highlight": {
    "pre_tags": [
      "@kibana-highlighted-field@"
    ],
    "post_tags": [
      "@/kibana-highlighted-field@"
    ],
    "fields": {
      "*": {}
    },
    "fragment_size": 2147483647
  }
}

```

I hope it helps...

Thanks!

---

<div class="post-metadata">

**Author:** ![Brandon\_Kobel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_kobel/32/14829_2.png) [@Brandon\_Kobel](https://discuss.elastic.co/u/Brandon_Kobel)\
**Post date:** [December 17, 2019, 12:54am UTC](https://discuss.elastic.co/t/discovers-date-histogram-disappears-at-presence-of-null-values/211901/4 "2019-12-17T00:54:42Z")

</div>

I believe this is [https://github.com/elastic/kibana/issues/52152](https://github.com/elastic/kibana/issues/52152) which will be fixed starting in 7.5.1

---

<div class="post-metadata">

**Author:** ![tomervain](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tomervain/32/57776_2.png) [@tomervain](https://discuss.elastic.co/u/tomervain)\
**Post date:** [December 17, 2019, 5:45am UTC](https://discuss.elastic.co/t/discovers-date-histogram-disappears-at-presence-of-null-values/211901/5 "2019-12-17T05:45:00Z")

</div>

Seems to be the same issue. Thanks!

---

<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:** [January 14, 2020, 5:45am UTC](https://discuss.elastic.co/t/discovers-date-histogram-disappears-at-presence-of-null-values/211901/6 "2020-01-14T05:45:01Z")

</div>

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