# Store Field Issue in Kibana

**URL:** <https://discuss.elastic.co/t/store-field-issue-in-kibana/55957>\
**Category:** Kibana\
**Created:** [July 20, 2016, 9:42am UTC](https://discuss.elastic.co/t/store-field-issue-in-kibana/55957 "2016-07-20T09:42:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aqm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aqm/32/45742_2.png) [@aqm](https://discuss.elastic.co/u/aqm)\
**Post date:** [July 20, 2016, 9:42am UTC](https://discuss.elastic.co/t/store-field-issue-in-kibana/55957/1 "2016-07-20T09:42:47Z")

</div>

Hi,  
I am using Kibana with Elastic search. I have different indicators which I have to calculate and then show them in charts. I am facing problem in indicators which themselves depend on other indicators, e.g  
I have an indicator name 'test' which is in %age. It will be calculated after calculation of two other indicators i-e "test1" and "test2"  
in simple words

`test=(test1/test2)\*100

test1 ='elasticsearch field1' + 'elasticsearch field2'

and as for test2

test2 ='elasticsearch field3' + 'elasticsearch field4'

//sum metrics will be use

`Kibana calculates test1 and test2 and also show them in charts, but I don't need to show these indicators to show in charts, I want to show in chart test indicator, When I do this, Kibana returns error that test1 and test2 does not exist,  
So it is problem of store field , that It is not storing values in these variables.

Here is code for above explanation

`x =doc['field1'].value + doc['field2'].value

y=doc['field3'].value + doc['field4'].value

z=x/y`

Now When I use 'z' , it gives error, that x and y doesn't exist.

Is there any solution for this

---

<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:45pm UTC](https://discuss.elastic.co/t/store-field-issue-in-kibana/55957/2 "2017-07-06T13:45:35Z")

</div>


