Text To Value mapping and thresholds

Hi Everyone,

How do i set value mapping from text to value to set thresholds.
I have boolean series of data which has true and false as values.
These are status values. I am trying to set threshold and colors for true and false in stat panel.
How do i do it?
Appreciate your help

Thanks