In the below dashboard table, I need to set colour condition of 2 columns that is is expected difference and sla_difference.
if expected_difference Is negative it should show in red colour if it is positive it should show in green colour.
same as for sla_difference if it is negative it should be orange if it is positive it should show in green.
In your query, go to the statistics view, click the little paintbrush next to the column and follow the items I show in this screenshot. This should be able to do what you want. Good luck!