Is there a way that #calc_sum will retrieve the last 20 created records of my object? Or is there a plan for a #calc_average function?
You can limit number of processed records in a #LOOP, that's what I can think of.