create var for average sales alert

create var and replace average sales alert with var