How to get maximum value of field in events?

Well, you seem to be on the right track given your other post (below). Please try to keep related questions together.