Sampling control according to a quantitative attribute