# Set in visualization "greater than X"

**URL:** <https://discuss.elastic.co/t/set-in-visualization-greater-than-x/281398>\
**Category:** Kibana\
**Created:** [August 13, 2021, 7:00pm UTC](https://discuss.elastic.co/t/set-in-visualization-greater-than-x/281398 "2021-08-13T19:00:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Saliinger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saliinger/32/77470_2.png) [@Saliinger](https://discuss.elastic.co/u/Saliinger)\
**Post date:** [August 13, 2021, 7:00pm UTC](https://discuss.elastic.co/t/set-in-visualization-greater-than-x/281398/1 "2021-08-13T19:00:56Z")

</div>

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

 ![Image](https://us1.discourse-cdn.com/elastic/original/3X/9/d/9dc994ec3577c7bbe6620dfbefece323c7d7262b.png)  
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?

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [August 17, 2021, 2:19pm UTC](https://discuss.elastic.co/t/set-in-visualization-greater-than-x/281398/2 "2021-08-17T14:19:04Z")

</div>

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](https://www.elastic.co/guide/en/kibana/current/managing-index-patterns.html#runtime-fields) to create a field that returns 1 if the value is greater then one or the value if the value is less then one.

---

<div class="post-metadata">

**Author:** ![Saliinger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saliinger/32/77470_2.png) [@Saliinger](https://discuss.elastic.co/u/Saliinger)\
**Post date:** [August 18, 2021, 8:09pm UTC](https://discuss.elastic.co/t/set-in-visualization-greater-than-x/281398/3 "2021-08-18T20:09:34Z")

</div>

Hello. Thank you for your answer.

I solved it using this!

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/8/a87c31bbb92a8fac996158a531da0ac7cb10e094.png)

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

---

<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:** [September 15, 2021, 8:09pm UTC](https://discuss.elastic.co/t/set-in-visualization-greater-than-x/281398/4 "2021-09-15T20:09:46Z")

</div>

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