Median of count of array field

My document has a nested field(array of messages)
I would like to find median and average of the messages per document

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.