# Color perspective table cell depending on value in another column

**URL:** <https://forum.inductiveautomation.com/t/color-perspective-table-cell-depending-on-value-in-another-column/21791>\
**Category:** Ignition Early Access\
**Created:** [January 10, 2019, 4:31pm UTC](https://forum.inductiveautomation.com/t/color-perspective-table-cell-depending-on-value-in-another-column/21791 "2019-01-10T16:31:27Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ynejati](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ynejati/32/6093_2.png) [@ynejati](https://forum.inductiveautomation.com/u/ynejati)\
**Post date:** [January 10, 2019, 7:03pm UTC](https://forum.inductiveautomation.com/t/color-perspective-table-cell-depending-on-value-in-another-column/21791/2 "2019-01-10T19:03:23Z")

</div>

Hi,

To apply function or style to cells individually, you will need to provide this information in the data source. The data item should be an object that includes reserved keys and values, for example:

```auto
city: {

  value: 'Folsom',

  editable: true,

  style: {

    backgroundColor: 'grey',

    classes: [] | ''

  }
}

```

See: [http://forum.inductiveautomation.com/t/feedback-new-perspective-table/](http://forum.inductiveautomation.com/t/feedback-new-perspective-table/) under data for more information.

Therefore, to get your desired result, you will have to transform your data so that the desired data item is an object containing the desired style based upon the value of another column/data item. You can accomplish this by applying a script transform via bindings.

Hope this helps.

-Yousuf

---

_[View the full topic](https://forum.inductiveautomation.com/t/color-perspective-table-cell-depending-on-value-in-another-column/21791)._
