I’m looking for a way to calculate a useful average for a given set of values which may contain huge spikes. (e.g 21, 54, 34, 14, 20, 300, 23 or 1, 1, 1, 1, 200, 1, 100) the spikes can throw things off when using the standard average calculation.
I looked into using the median but this doesn’t really give the desired result.
I would like to implement this in T-SQL
Any ideas?
This way you can take away the highest and the lowest 25 % before calculating the result.