Cell coloring in Power table

Hello,
I need to color a cell based on its value.
the code used is the following:

if colName == 'quality' and value != 'Good':
    return {'background': (255, 0, 0)}

the result I get is not what I expected:

Based on the values under the quality column it looks like this is a “qualified value” therefore the qualityCode is not a string datatype.

Try wrapping str() around value to see if that works.

I have already found the solution.

the problem was that the quality column values ​​had a space at the beginning of the word.

thank you