Variable on a dashboard

Can we assign a variable to a threshold
I have a variable that I would like to set as threshold or max value on a dashboard
is it possible