How to calculate the median of a field in jasper studio? We have a report requirement in which the user would like to get the median of a particular field. I have tried using variables to calculate the median, but the inbuilt calculations does not have a median calculation. After doing some research, found that the org.apache.commons.math3.stat.descriptive.rank has a class called Median, but I don't know how to use this class in jasper studio. Can someone help me in this ?