# Dashtable: is it possible to filter on row\_index and column\_index at the same time?

**URL:** <https://community.plotly.com/t/dashtable-is-it-possible-to-filter-on-row-index-and-column-index-at-the-same-time/24624>\
**Category:** Dash Python\
**Created:** [June 15, 2019, 11:51am UTC](https://community.plotly.com/t/dashtable-is-it-possible-to-filter-on-row-index-and-column-index-at-the-same-time/24624 "2019-06-15T11:51:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![David22](https://avatars.discourse-cdn.com/v4/letter/d/439d5e/32.png) [@David22](https://community.plotly.com/u/David22)\
**Post date:** [June 15, 2019, 11:51am UTC](https://community.plotly.com/t/dashtable-is-it-possible-to-filter-on-row-index-and-column-index-at-the-same-time/24624/1 "2019-06-15T11:51:44Z")

</div>

Hello,

Referring to the doc here [https://dash.plot.ly/datatable/style](https://dash.plot.ly/datatable/style) it seems possible to apply a specific style on

- a row
- a colum
- a column on which filters are applied to isolate cells

What I’m triying to achieve is to isolate one cell in a table of several identical values.

Consider a 3x3 table full of zeros. I want to highlight the last zero on the last row and the last colum.

- if I apply a style on the row, with a filter “=0”, then the whole row is highlighted
- if I apply a style on the colum without or with a filter, the whole column is higlighted

So far I’ve tried:

```
                        {
                        'if': {'row_index': 47, 'filter': '{ColumID} != 0'},   
                        'backgroundColor': 'green',
                    } 

```

where ColumnID is the ID of my column,

and

```
                    {
                    'if': {'column_id': 'ColumnID', 'filter': 'row_id: != 0'},   
                    'backgroundColor': 'green',
                    } 

```

But since it’s not designed to be used this way, well, it doesnt work.

Is there a workaround?

---

<div class="post-metadata">

**Author:** ![David22](https://avatars.discourse-cdn.com/v4/letter/d/439d5e/32.png) [@David22](https://community.plotly.com/u/David22)\
**Post date:** [June 16, 2019, 11:08am UTC](https://community.plotly.com/t/dashtable-is-it-possible-to-filter-on-row-index-and-column-index-at-the-same-time/24624/2 "2019-06-16T11:08:07Z")

</div>

Actually, an answer was provided here: [Is it possible to style multiple headers separately?](https://community.plotly.com/t/is-it-possible-to-style-multiple-headers-separately/21499/2)

E.g provided:

```
    style_header_conditional=[
    { 'if': { 'column_type': 'numeric' }, 'backgroundColor': 'magenta' },
    { 'if': { 'header_index': 2 }, 'backgroundColor': 'orange' },
    { 'if': { 'column_id': 'Complaint ID', 'header_index': 0 }, 'backgroundColor': 'red' },
    { 'if': { 'column_id': 'Complaint ID', 'header_index': 1 }, 'backgroundColor': 'pink' },
    { 'if': { 'column_id': 'Complaint ID', 'header_index': 2 }, 'backgroundColor': 'yellow' },
]

```

Same logic can be applied on cells & data.
