You may have already figured this out, but there is a block for this. It's called "NetInMinMaxAvgSum_1.1"

You can find it in the Code Library under:

gfxApplications -> 1.1 -> BACnet ->...