getting historical maximum, per segment + month