Calculate the P-th percentile of a dataset. The percentile represents the value below which a given percentage of observations in a group of observations falls.