I need an expert.

I have the following data and I need to find the absolute deviation from the median ratio

Group Ratio
101 0.933
101 0.887
101 0.882
101 0.878
101 0.854
101 0.975
102 0.942
102 0.891
102 0.918

Specifically, the median ratio for group 101 is 0.8845. I want to take each record field and subtract the median ratio (abs(0.933 - 0.8845)). I can use a running total to calculate the median ratio, but I can't figure out how to subtract the total from each record. Been round and round, even trying to pass the value in from a subreport, but have not had any luck.

Thank you for your time!!