# Custom Table Row Color based on Value

**URL:** <https://forum.inductiveautomation.com/t/custom-table-row-color-based-on-value/87363>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [March 14, 2024, 8:10pm UTC](https://forum.inductiveautomation.com/t/custom-table-row-color-based-on-value/87363 "2024-03-14T20:10:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pedro\_Conicelli](https://avatars.discourse-cdn.com/v4/letter/p/439d5e/32.png) [@Pedro\_Conicelli](https://forum.inductiveautomation.com/u/Pedro_Conicelli)\
**Post date:** [March 14, 2024, 8:10pm UTC](https://forum.inductiveautomation.com/t/custom-table-row-color-based-on-value/87363/1 "2024-03-14T20:10:05Z")

</div>

I'm trying to to change the background of an row in my table component, based on one of the values, but i can not find any solution for it.  
one of my columns will have a value that if it is "below 0" i need to highlight the whole row as "red".  
I'm getting the Table data from a Query Tag that return a Dataset.

do you have any suggestions on how i can do it?

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [March 14, 2024, 8:27pm UTC](https://forum.inductiveautomation.com/t/custom-table-row-color-based-on-value/87363/2 "2024-03-14T20:27:42Z")

</div>

There's an example in the docs and many posts on the topic in the forum. Note that the output format will have to be JSON.

> **[Perspective - Table | Ignition User Manual](https://www.docs.inductiveautomation.com/docs/8.1/appendix/components/perspective-components/perspective-display-palette/perspective-table#example-1-styling-rows-based-on-value---json-data)**
>
> The Table component displays database data in tabular form.
