Summaries cannot be placed on formulas that use any type of summary (MIN, MAX, SUM etc) or Running Total field. To get around this issue, use a shared variable instead to calculate the summary.