Hi,a solution in FormCalc could look this way:form1.#subform[0].table1.footer.sum::calculate - (FormCalc, client)var c = 0var s = 0for i = 0 upto (_data.count - 1) do if (data[i].eValue gt 0) then c = Sum(c, 1) s = Sum(s, data[i].eValue) endifendforif (s gt 0 and c gt 0) then $ = Round(s / c)el...