According to the specification you should be able to choose a custom function to use as the summaryType for a row from a SummaryFeature, but on Architect i can't figure out where to add the function to have it come up on the same list as count, sum, min etc...