Houdini - Max, Min, Average of Attributes
Without writing Vex, append an Attribute Promote and promote the attribute to a detail, then use any of the promotion methods:

In this case, we want the maximums of @P – so we promote from Original name - P - to a New name of max which lets us then access max as a detail attribute!
