I would like to know how to calculate the median for the values in a particular field. I am using Visual Studio .NET to produce a report. I can calculate the average without any problem, but I cannot seem to figure out how to calculate the median. How can this be done? Can this be done in the properties? Any help would be greatly appreciated.