Das ist wohl eher was für SQL (QMQuery, ggf. Web-Query?):

case when feld < 0 then 0 else feld end