# Any way to access Metric value through JSON input field

**URL:** <https://discuss.elastic.co/t/any-way-to-access-metric-value-through-json-input-field/362690>\
**Category:** Kibana\
**Created:** [July 8, 2024, 9:46am UTC](https://discuss.elastic.co/t/any-way-to-access-metric-value-through-json-input-field/362690 "2024-07-08T09:46:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ayushr](https://avatars.discourse-cdn.com/v4/letter/a/7993a0/32.png) [@ayushr](https://discuss.elastic.co/u/ayushr)\
**Post date:** [July 8, 2024, 9:46am UTC](https://discuss.elastic.co/t/any-way-to-access-metric-value-through-json-input-field/362690/1 "2024-07-08T09:46:44Z")

</div>

Hi  
I am looking to apply a floor() method on the overall average of a field calculated in 'Metric' visualisation in Kibana. I cannot apply floor() on each value in document since it will give incorrect value. Is there a way to access the metric value calculated in JSON input field so that I can apply floor() function to it.  
I dont think this will work via scripted fields since I want to apply the method on a whole metric and not one document.

---

<div class="post-metadata">

**Author:** ![ayushr](https://avatars.discourse-cdn.com/v4/letter/a/7993a0/32.png) [@ayushr](https://discuss.elastic.co/u/ayushr)\
**Post date:** [July 12, 2024, 6:42am UTC](https://discuss.elastic.co/t/any-way-to-access-metric-value-through-json-input-field/362690/2 "2024-07-12T06:42:30Z")

</div>

@majagrubic can you help please
