Discount % per units

Discount % per units

Hi,

Is it possible to define a discount automatically depending the units? I don't want to type the percentage manually.

Thanks,

Rafa