# How to show 0 instead of blank in meteric

**URL:** https://discuss.elastic.co/t/how-to-show-0-instead-of-blank-in-meteric/154649
**Category:** Kibana
**Created:** [October 30, 2018, 12:06pm UTC](https://discuss.elastic.co/t/how-to-show-0-instead-of-blank-in-meteric/154649 "2018-10-30T12:06:39Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Nethaji](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nethaji/32/72803_2.png) [@Nethaji](https://discuss.elastic.co/u/Nethaji)
#### Post date: [October 30, 2018, 12:06pm UTC](https://discuss.elastic.co/t/how-to-show-0-instead-of-blank-in-meteric/154649/1 "2018-10-30T12:06:39Z")

</div>

Hi All,

How can I customize my metric in kibana?

i want to show 0 in metric, if no data is available

---

<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: [October 30, 2018, 4:36pm UTC](https://discuss.elastic.co/t/how-to-show-0-instead-of-blank-in-meteric/154649/2 "2018-10-30T16:36:46Z")

</div>

Hey @Nethaji, would you mind sharing a screenshot of your current metric configuration to better illustrate what you'd like to be displayed as "0"?

---

<div class="post-metadata">

### Author: ![Sjaak01](https://avatars.discourse-cdn.com/v4/letter/s/73ab20/32.png) [@Sjaak01](https://discuss.elastic.co/u/Sjaak01)
#### Post date: [October 31, 2018, 12:42am UTC](https://discuss.elastic.co/t/how-to-show-0-instead-of-blank-in-meteric/154649/3 "2018-10-31T00:42:25Z")

</div>

If it's a string field then most visualizations allow you to select "show missing values" but this doesn't work on numerical fields.

A better solution might be to have Logstash check whether a field exists and if not, then add a field with the value 0.

---

<div class="post-metadata">

### Author: ![Nethaji](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nethaji/32/72803_2.png) [@Nethaji](https://discuss.elastic.co/u/Nethaji)
#### Post date: [October 31, 2018, 7:58am UTC](https://discuss.elastic.co/t/how-to-show-0-instead-of-blank-in-meteric/154649/4 "2018-10-31T07:58:20Z")

</div>

Thank you for your response,

I cleared this issues in MySQL query, Now it's showing 0 if no data is found

---

<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 28, 2018, 7:58am UTC](https://discuss.elastic.co/t/how-to-show-0-instead-of-blank-in-meteric/154649/5 "2018-11-28T07:58:25Z")

</div>

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