Insert calculation of min and max value in a data set