# Easy arithmetic function byte to gigabyte

**URL:** <https://discuss.elastic.co/t/easy-arithmetic-function-byte-to-gigabyte/58870>\
**Category:** Kibana\
**Created:** [August 24, 2016, 10:34pm UTC](https://discuss.elastic.co/t/easy-arithmetic-function-byte-to-gigabyte/58870 "2016-08-24T22:34:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bastianhoss](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bastianhoss/32/11437_2.png) [@bastianhoss](https://discuss.elastic.co/u/bastianhoss)\
**Post date:** [August 24, 2016, 10:34pm UTC](https://discuss.elastic.co/t/easy-arithmetic-function-byte-to-gigabyte/58870/1 "2016-08-24T22:34:09Z")

</div>

Hey there,

looking for an opportunity to calculate with a numberfiled in a visualization.

My current need is: convert bytes in gigabyte only in the visiualization. The field needs to be in bytes.

Thanks

---

<div class="post-metadata">

**Author:** ![LeeDr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leedr/32/9289_2.png) [@LeeDr](https://discuss.elastic.co/u/LeeDr)\
**Post date:** [August 25, 2016, 12:14am UTC](https://discuss.elastic.co/t/easy-arithmetic-function-byte-to-gigabyte/58870/2 "2016-08-25T00:14:40Z")

</div>

Hi Bastianhoss,

If you go to Settings and click on you index pattern name you will see the list of fields.  
Find your bytes field and see what is shown in the `format` column. If it's blank, the click on the edit icon and change it to Bytes and `Update Field`. That should automatically format bytes for you.

Regards,  
Lee

---

<div class="post-metadata">

**Author:** ![bastianhoss](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bastianhoss/32/11437_2.png) [@bastianhoss](https://discuss.elastic.co/u/bastianhoss)\
**Post date:** [August 25, 2016, 7:50pm UTC](https://discuss.elastic.co/t/easy-arithmetic-function-byte-to-gigabyte/58870/3 "2016-08-25T19:50:26Z")

</div>

Hi LeeDr,

realy nice hint! Works fine...

---

<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:** [July 6, 2017, 1:40pm UTC](https://discuss.elastic.co/t/easy-arithmetic-function-byte-to-gigabyte/58870/4 "2017-07-06T13:40:17Z")

</div>


