Problem whit variable Max

Hi,
How can I assign the Max value in the panel Visualization, using a dynamic variable in a table of a DB.
The grafic is the Bar Gauge

regards