# Field with long type show integer value in table visualization

**URL:** <https://discuss.elastic.co/t/field-with-long-type-show-integer-value-in-table-visualization/322401>\
**Category:** Kibana\
**Created:** [January 3, 2023, 7:31pm UTC](https://discuss.elastic.co/t/field-with-long-type-show-integer-value-in-table-visualization/322401 "2023-01-03T19:31:08Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [January 4, 2023, 4:37pm UTC](https://discuss.elastic.co/t/field-with-long-type-show-integer-value-in-table-visualization/322401/4 "2023-01-04T16:37:11Z")

</div>

> [@ShayWeizman](#):
>
> The mapping for this field is Long:

Apologies perhaps I am a little confused ..... If you want a `float` you will need to change the mapping to a `float`

You will need to reindex your data because the field has already been indexed as a `long`

There is no magic fix... that field can not be "auto-converted" the precision in the field is already gone but you have the source so you can reindex or re-load the source after you fix the mapping.

---

_[View the full topic](https://discuss.elastic.co/t/field-with-long-type-show-integer-value-in-table-visualization/322401)._
