How to compare two columns and change there color

I have two columns for example Total weight and total weight threshold and there value is 2880231 and 716800. I want to compare them and if the first value is greater than the second value then the color should be change to red. Color is optional but how to achieve this ?

Hi,

What data source are you using? Are you trying to implement this using the table or singlestat panel?

To be able to do this you’ll need to use a data source that supports comparing two values/queries. One of these are Graphite. Otherwise I suggest you to look into the Meta queries plugin.

Marcus

Hi,

Just saw the thread which is similar to my question.

My data source is MySQl and I have two SQL’s added to it so here i want to show the data based on second sql output > First sql output.

please suggest.