# Metric count formating

**URL:** <https://discuss.elastic.co/t/metric-count-formating/87508>\
**Category:** Kibana\
**Created:** [May 30, 2017, 6:38am UTC](https://discuss.elastic.co/t/metric-count-formating/87508 "2017-05-30T06:38:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robert\_Schwerdtner](https://avatars.discourse-cdn.com/v4/letter/r/dc4da7/32.png) [@Robert\_Schwerdtner](https://discuss.elastic.co/u/Robert_Schwerdtner)\
**Post date:** [May 30, 2017, 6:38am UTC](https://discuss.elastic.co/t/metric-count-formating/87508/1 "2017-05-30T06:38:50Z")

</div>

Hi is there an easy (or any) way to change the formatting of the count field at the metric visualisation?  
I get a float with two decimals but i simply need the same number without the decimals.

I know that i can change the number field style at my indexpattern. But this does not apply for the count calculation of datasets (I guess).

Could someone help me on this?

 ![](https://us1.discourse-cdn.com/elastic/original/3X/8/4/8401903486698064d728420c457737998e628094.png)

---

<div class="post-metadata">

**Author:** ![Sylfaen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sylfaen/32/17653_2.png) [@Sylfaen](https://discuss.elastic.co/u/Sylfaen)\
**Post date:** [May 30, 2017, 9:45am UTC](https://discuss.elastic.co/t/metric-count-formating/87508/2 "2017-05-30T09:45:55Z")

</div>

![](https://us1.discourse-cdn.com/elastic/original/3X/b/7/b7ad56591e307ca17e0652406d9ebb7c5c75ed7b.png)

In Advanced Settings, you have :

> format:number:defaultPattern (Default: 0,0.[000])  
> Default numeral format for the "number" format

You can change it with your own format and it'll be applied to all numbers (not only for metric). I didn't found a way to only apply a format to a specific chart.

Hope it helps you 🙂

---

<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:** [June 27, 2017, 9:46am UTC](https://discuss.elastic.co/t/metric-count-formating/87508/3 "2017-06-27T09:46:00Z")

</div>

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