Set in visualization "greater than X"

Hello!
I'm trying to set a TSVB visualization values when it's greather than 1, I mean:


When value of this visualization is greather than 1, set it to 1 like an "if-else statements"

if (value >= 1):
value = 1

It is possible to do?

Can you describe your usecase more? Why are you trying to limit values to 1? There are usually lots of ways to do things in the Elastic stack. Having a better understanding of the big picture helps direct the solution.

You can use a runtime field to create a field that returns 1 if the value is greater then one or the value if the value is less then one.

Hello. Thank you for your answer.

I solved it using this!

Now the answer is between 0-1 and multiply it for 15.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.