Grafana Table – Conditional cell color based on comparison of two columns

In a Grafana Table visualization using version 12.3.1, I have two numeric columns (Column A and Column B).

I want to apply conditional formatting such that:

  • If Column A > Column B, then Column A cell background should be red

  • Else, Column A should remain white (default)

    If yes, please share the recommended approach.

Try this approach:

1 Like

Looks like Col B value is a static 3.50? If so, would setting the “threshold” value to 3.5 work for you?

Unless the threshold is dynamic and could potentially change?