# Colour-code cells based on numeric value in Data Table and convert to Percentage

**URL:** <https://discuss.elastic.co/t/colour-code-cells-based-on-numeric-value-in-data-table-and-convert-to-percentage/136080>\
**Category:** Kibana\
**Created:** [June 15, 2018, 10:42am UTC](https://discuss.elastic.co/t/colour-code-cells-based-on-numeric-value-in-data-table-and-convert-to-percentage/136080 "2018-06-15T10:42:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Suhas\_K](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/suhas_k/32/31525_2.png) [@Suhas\_K](https://discuss.elastic.co/u/Suhas_K)\
**Post date:** [June 15, 2018, 10:42am UTC](https://discuss.elastic.co/t/colour-code-cells-based-on-numeric-value-in-data-table-and-convert-to-percentage/136080/1 "2018-06-15T10:42:11Z")

</div>

Hi, I'm facing an issue while creating a data table. I wish to change the colour of the cells on the basis of their percentage value. Data shown below:

 ![q1](https://us1.discourse-cdn.com/elastic/original/3X/4/2/42c6fe1f6348c8ba577825679ffacee9d16aa18f.png)

The issue is that the field is of type 'number' while I want to display percentage values. This is possible by editing the settings of field under 'Index Patterns' (as shown).

 ![q](https://us1.discourse-cdn.com/elastic/original/3X/0/a/0a3156a198148430a9937be8c181ac9b6a2afd5f.png)

However, I am unable to do both the required things (i.e. change the colour + change to percentage) as the 'Format' can either be set as Percentage or Colour (and not both). Is there a way to solve this?

Thanks 🐅

---

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [June 15, 2018, 3:07pm UTC](https://discuss.elastic.co/t/colour-code-cells-based-on-numeric-value-in-data-table-and-convert-to-percentage/136080/2 "2018-06-15T15:07:27Z")

</div>

Hi Suhas,

This is not currently available in Kibana, but it's a great suggestion. I've added an enhancement request for it over here: [https://github.com/elastic/kibana/issues/19953](https://github.com/elastic/kibana/issues/19953)

---

<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:** [July 13, 2018, 3:07pm UTC](https://discuss.elastic.co/t/colour-code-cells-based-on-numeric-value-in-data-table-and-convert-to-percentage/136080/3 "2018-07-13T15:07:35Z")

</div>

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