# Kibana Dashboard field value count

**URL:** <https://discuss.elastic.co/t/kibana-dashboard-field-value-count/297494>\
**Category:** Kibana\
**Created:** [February 17, 2022, 1:21pm UTC](https://discuss.elastic.co/t/kibana-dashboard-field-value-count/297494 "2022-02-17T13:21:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![shanthveeresh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shanthveeresh/32/69484_2.png) [@shanthveeresh](https://discuss.elastic.co/u/shanthveeresh)\
**Post date:** [February 17, 2022, 1:21pm UTC](https://discuss.elastic.co/t/kibana-dashboard-field-value-count/297494/1 "2022-02-17T13:21:20Z")

</div>

Hi All,

I am trying to find a .json script or keyword to count the number of field value count in Kibana dashboard, let me know if there is any way to do it, it will be very helpful.

---

<div class="post-metadata">

**Author:** ![Tomo\_M](https://avatars.discourse-cdn.com/v4/letter/t/848f3c/32.png) [@Tomo\_M](https://discuss.elastic.co/u/Tomo_M)\
**Post date:** [February 20, 2022, 11:17am UTC](https://discuss.elastic.co/t/kibana-dashboard-field-value-count/297494/2 "2022-02-20T11:17:14Z")

</div>

What do you mean by "the number of field value count"?  
Is it a document count with the field exting? Or Unique value count in that field? Or the sum of the length of array type field?

---

<div class="post-metadata">

**Author:** ![shanthveeresh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shanthveeresh/32/69484_2.png) [@shanthveeresh](https://discuss.elastic.co/u/shanthveeresh)\
**Post date:** [February 21, 2022, 5:42am UTC](https://discuss.elastic.co/t/kibana-dashboard-field-value-count/297494/3 "2022-02-21T05:42:01Z")

</div>

Hi,

As i am trying to implement this below formula, as i need to count LOGIN & HEARTBEAT values in dashboard to get the results as per the formula.

below formula.

7.5min +15 \*[count of ("LOGIN" + "HEARTBEAT" -1) records]

---

<div class="post-metadata">

**Author:** ![Tomo\_M](https://avatars.discourse-cdn.com/v4/letter/t/848f3c/32.png) [@Tomo\_M](https://discuss.elastic.co/u/Tomo_M)\
**Post date:** [February 21, 2022, 6:06am UTC](https://discuss.elastic.co/t/kibana-dashboard-field-value-count/297494/4 "2022-02-21T06:06:22Z")

</div>

Sorry, I cannot understand the formula..

---

<div class="post-metadata">

**Author:** ![shanthveeresh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shanthveeresh/32/69484_2.png) [@shanthveeresh](https://discuss.elastic.co/u/shanthveeresh)\
**Post date:** [February 27, 2022, 3:30pm UTC](https://discuss.elastic.co/t/kibana-dashboard-field-value-count/297494/5 "2022-02-27T15:30:20Z")

</div>

As i just need to count the values of LOGIN & Heartbeat by .json if it's achieved somehow i can implement the formula in dashboard or how to count any values in dashboard any idea's will be helpful.

---

<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:** [March 27, 2022, 3:31pm UTC](https://discuss.elastic.co/t/kibana-dashboard-field-value-count/297494/6 "2022-03-27T15:31:07Z")

</div>

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