However, before we can compute these three measures of the dataset, we must first prepare our data set by rewriting it in ascending order from least to greatest. Median of a dataset is the middle value of the collection of data when arranged in ascending order and descending order.