When I compare two equal numbers in a Scripted Field I get a Boolean = false. Hows is this possible?
My Numbers (first one: result of substraction , second a static number) are actually the same.
Both are type double. I rounded them and compared them (11.94 == 11.94) , but Kibana gives me false
Can anyone help please ?!
Can you show us the scripted field please?
This thread has some examples of comparing numbers, make sure you are following a similar pattern:
In Kibana (e.g Visualise), is it possible to compare one term with another?
For example, I have indexed records that contain an indoorTemp value and a setpointTemp value - I have a line chart that shows the indoorTemp over time (using the Date histogram on the x-axis), but I would like to find just those times (e.g. hour buckets), where the value of indoorTemp exceeded that of setpointTemp.
I would settle for being able to show buckets where indoorTemp was greater than a constant (I can't see …
def a = doc['q60tu01.D329-GESAMT-DATEN.D329-VERTRAG-DATEN.D329-VTG-ZAHL-BEITR'].value; >> is 12.0
def b = doc['q60tu01.D329-GESAMT-DATEN.D329-VERTRAG-DATEN.D329-VTG-RABATT-BEITR'].value; >> is 0.06
def c = doc['Q17TA21.beitragRatierlich'].value; >> is 11.94
(Math.round(a * 100.0) / 100.0) - (Math.round(b * 100.0) / 100.0) == (Math.round(c * 100.0) / 100.0)
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.