The median is the middle value and is a measure of central tendency, it is a value that can be used to represent a set of data. You can calculate the median by:.