# Change color of some field based on a value of another field in the same document

**URL:** https://discuss.elastic.co/t/change-color-of-some-field-based-on-a-value-of-another-field-in-the-same-document/271315
**Category:** Kibana
**Created:** [April 27, 2021, 6:11am UTC](https://discuss.elastic.co/t/change-color-of-some-field-based-on-a-value-of-another-field-in-the-same-document/271315 "2021-04-27T06:11:27Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Manjula\_Piyumal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/manjula_piyumal/32/57068_2.png) [@Manjula\_Piyumal](https://discuss.elastic.co/u/Manjula_Piyumal)
#### Post date: [April 27, 2021, 6:11am UTC](https://discuss.elastic.co/t/change-color-of-some-field-based-on-a-value-of-another-field-in-the-same-document/271315/1 "2021-04-27T06:11:27Z")

</div>

Hi,

In Kibana, is it possible to change the color of a numeric field based on a value in another filed in the same document?  
My document contains below two fields, I want to change the color of "count", based on the field "within\_threshold" (which is derived dynamically from the source system based on some dynamic thresholds)

```auto
{
   "count" : 12,124,
   "within_threshold" : false
}

```

I'm open to upgrade my ELK stack to any later version (currently planning to upgrade to 7.11.0). Please let me know if this is possible in any of the latest versions.

Thanks in advance!!!

---

<div class="post-metadata">

### Author: ![matw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matw/32/13913_2.png) [@matw](https://discuss.elastic.co/u/matw)
#### Post date: [April 27, 2021, 6:39am UTC](https://discuss.elastic.co/t/change-color-of-some-field-based-on-a-value-of-another-field-in-the-same-document/271315/2 "2021-04-27T06:39:42Z")

</div>

Hi Manjula

Where do you want to change the color of the field? In Discover?

Thx & Best,  
Matthias

---

<div class="post-metadata">

### Author: ![Manjula\_Piyumal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/manjula_piyumal/32/57068_2.png) [@Manjula\_Piyumal](https://discuss.elastic.co/u/Manjula_Piyumal)
#### Post date: [April 27, 2021, 6:43am UTC](https://discuss.elastic.co/t/change-color-of-some-field-based-on-a-value-of-another-field-in-the-same-document/271315/3 "2021-04-27T06:43:44Z")

</div>

> [@matw](#):
>
> Disc

Hi @matw ,

I want to visualize this count field only. So planning to use Metric or TSVB.

Thanks

---

<div class="post-metadata">

### Author: ![Manjula\_Piyumal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/manjula_piyumal/32/57068_2.png) [@Manjula\_Piyumal](https://discuss.elastic.co/u/Manjula_Piyumal)
#### Post date: [April 30, 2021, 5:39am UTC](https://discuss.elastic.co/t/change-color-of-some-field-based-on-a-value-of-another-field-in-the-same-document/271315/4 "2021-04-30T05:39:31Z")

</div>

Hi,

Any help on this please?

Thanks

---

<div class="post-metadata">

### Author: ![Manjula\_Piyumal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/manjula_piyumal/32/57068_2.png) [@Manjula\_Piyumal](https://discuss.elastic.co/u/Manjula_Piyumal)
#### Post date: [May 3, 2021, 2:51pm UTC](https://discuss.elastic.co/t/change-color-of-some-field-based-on-a-value-of-another-field-in-the-same-document/271315/5 "2021-05-03T14:51:49Z")

</div>

Hi,

Appreciate any thoughts on this

Thanks

---

<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: [May 31, 2021, 2:52pm UTC](https://discuss.elastic.co/t/change-color-of-some-field-based-on-a-value-of-another-field-in-the-same-document/271315/6 "2021-05-31T14:52:11Z")

</div>

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