You can do this with scripted fields. You'll need to setup the fields ahead of time and then reference them in the visualization. https://www.elastic.co/guide/en/kibana/current/scripted-fields.html. There is no way to do this on the fly in a visualization itself. (Depending on the amount of data you're talking about it may be better to generate the fields on ingest rather than scripting on the fly)
Thank you Ben for the details. I am trying for percentile calculation .
For this, I have looped through the documents and taken total records . Another loop for conditional value from the total like success. Post to the values when i am trying to do percentile like below it is not working
percentile = ((100*success) / count);
Multiplication is working fine but division is not working. Any thoughts on this issue? Do we have any percentile operator for doing percentage calculation?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.