# Count Metric goes to 0

**URL:** <https://discuss.elastic.co/t/count-metric-goes-to-0/151185>\
**Category:** Kibana\
**Created:** [October 5, 2018, 9:40am UTC](https://discuss.elastic.co/t/count-metric-goes-to-0/151185 "2018-10-05T09:40:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![felixf](https://avatars.discourse-cdn.com/v4/letter/f/fbc32d/32.png) [@felixf](https://discuss.elastic.co/u/felixf)\
**Post date:** [October 5, 2018, 9:40am UTC](https://discuss.elastic.co/t/count-metric-goes-to-0/151185/1 "2018-10-05T09:40:28Z")

</div>

Hi,

I am very new to Kibana and Elasticsearch, I am trying to understand the visualizations and their options.

I have some example data in elastisearch, which I can see via the Dev Tools when running the default query. There, I have 46 entries, a couple of them are from the `.kibana` index, and the rest from my example data `.example_data` index.

I simply want to create a visual metric showing the entries for the `.example_data` index, which I thought might just be the easiest thing to start with. So I create a new Metric, choose "Count" and at first, the count actually is correct. However, after the dashboard refreshes again and again, it goes down 1 every time, until it is at 0. The data however is obviously still there. When I put in new data, the count goes up 1 immediately, but then goes down to 0 again.

I have also tried using "Unique Count" and setting the field to "\_id". It just stays at 0. I have tried every field I have which is unique, nothing will bring up the actual count of the documents in the index.

I appreciate any help with this.

---

<div class="post-metadata">

**Author:** ![ErSumit](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ersumit/32/88708_2.png) [@ErSumit](https://discuss.elastic.co/u/ErSumit)\
**Post date:** [October 5, 2018, 11:46am UTC](https://discuss.elastic.co/t/count-metric-goes-to-0/151185/2 "2018-10-05T11:46:23Z")

</div>

Try selecting different time range on top right corner of kibana dashboard.  
What is there?  
You must get all the data with time range as

---

<div class="post-metadata">

**Author:** ![felixf](https://avatars.discourse-cdn.com/v4/letter/f/fbc32d/32.png) [@felixf](https://discuss.elastic.co/u/felixf)\
**Post date:** [October 5, 2018, 12:22pm UTC](https://discuss.elastic.co/t/count-metric-goes-to-0/151185/3 "2018-10-05T12:22:04Z")

</div>

🤦‍♂️

Thanks a lot. I thought the Dashboard had a global state regarding the date. Didn't see that setting.

---

<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:** [November 2, 2018, 12:22pm UTC](https://discuss.elastic.co/t/count-metric-goes-to-0/151185/4 "2018-11-02T12:22:20Z")

</div>

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