Hi,
maybe the solution in this thread will be of help for you. Its for averages, but could be used for sums.