In Notes 8.5.1 the Notes view container supports a few basic actions for numbers – Count, Total, Min, Average, Max, etc and with the custom action extension you can add as many as you want to that list. Greg Roberts wrote a nice article that shows how you can do this with a sample action that adds “Median” to the set.
Referenced Article is here.