Thank you for your answer! I didn't know I can make all of these in Kibana. However, I think that my question is more specific about visualization. I really dont know how I can make a column change depending on its value.
I mean, I might be not understanding what you've said. I have some columns, each of them is a value, not depending on anything. The values I'm working with are like that. So now, what I want is to color that specific column depending on that value.
In the example that you have provided, you have a the number of cars pero year, so it's simple because you have the same data and you can do what you are saying.
I'm not sure if I can do what I'm trying to explain.
It is technically possible to do so, leveraging Lens formula, similar to the way @dadoonet showed before.
But I would recommend 1 metric per chart probably there:
What I've done here is basically define 2 formulas based on a threshold of 1000:
Above 1000: is a formula that sets any value above 1000 to its value, or 0 otherwise => ifelse( average(value) >= 1000, average(value), 0)
Below 1000: is the same formula but the 2nd and 3rd arguments swapped: ifelse( average(value) >= 1000, 0, average(value))
Then you can set the color per metric as I did in the picture above.
Choosing a stacked vertical bar would make the trick (as 0 int he ifelse would work as a filter between the two metrics).
Of course you could define 2 formulas per metric, but it would be not super manageable.
Without ifelse you can approximate a boolean evaluation behaviour with clamp as @dadoonet wrote earlier on.
But it's hard to grasp, and upgrading would bring more nice features in general.
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.