# How to divide the numbers of a specific field by 100 in Kibana

**URL:** <https://discuss.elastic.co/t/how-to-divide-the-numbers-of-a-specific-field-by-100-in-kibana/127016>\
**Category:** Kibana\
**Created:** [April 6, 2018, 1:56am UTC](https://discuss.elastic.co/t/how-to-divide-the-numbers-of-a-specific-field-by-100-in-kibana/127016 "2018-04-06T01:56:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel\_Gonzalez1](https://avatars.discourse-cdn.com/v4/letter/d/57b2e6/32.png) [@Daniel\_Gonzalez1](https://discuss.elastic.co/u/Daniel_Gonzalez1)\
**Post date:** [April 6, 2018, 1:56am UTC](https://discuss.elastic.co/t/how-to-divide-the-numbers-of-a-specific-field-by-100-in-kibana/127016/1 "2018-04-06T01:56:11Z")

</div>

Hello!

I have a field we amounts that have need to divide by 100. For example my field is Amount1 and all the numbers come like this, example:

3,456,890  
23,44,950  
80,531,865

I want to divide theme by 100 so the amount be like this:

34,568.90  
23,449.50  
805,318.65

I was trying to do something in the index pattern so I can fix it maybe with the Numeral.js to  
move the decimal two spaces to the right, but its not working

But is not working!

---

<div class="post-metadata">

**Author:** ![simianhacker](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/simianhacker/32/3383_2.png) [@simianhacker](https://discuss.elastic.co/u/simianhacker)\
**Post date:** [April 6, 2018, 8:31pm UTC](https://discuss.elastic.co/t/how-to-divide-the-numbers-of-a-specific-field-by-100-in-kibana/127016/2 "2018-04-06T20:31:31Z")

</div>

There are two ways to do this:

1. Use scripted fields located under `Management > Index Patterns`, click on the `Scripted Fields` tab and create a new scripted field. Beware... mileage may vary on performance.

2. Use a bucket script pipeline aggregation in either Time Series Visual Builder or the normal aggregation framework. This will allow you to do an average of the `amount1` and then write a painless script to divide the results by 100.

---

<div class="post-metadata">

**Author:** ![Daniel\_Gonzalez1](https://avatars.discourse-cdn.com/v4/letter/d/57b2e6/32.png) [@Daniel\_Gonzalez1](https://discuss.elastic.co/u/Daniel_Gonzalez1)\
**Post date:** [April 8, 2018, 9:42pm UTC](https://discuss.elastic.co/t/how-to-divide-the-numbers-of-a-specific-field-by-100-in-kibana/127016/3 "2018-04-08T21:42:53Z")

</div>

Thanks very much simianhacker! It works.

---

<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:** [May 6, 2018, 9:43pm UTC](https://discuss.elastic.co/t/how-to-divide-the-numbers-of-a-specific-field-by-100-in-kibana/127016/4 "2018-05-06T21:43:19Z")

</div>

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