2009/5/16 Patrick Antivackis <[email protected]>: > You should do like this : > > > function(keys, values) { > var totalcallsfor = 0; > var totalanswered = 0; > values.forEach(function(value) { > totalcallsfor = totalcallsfor + value.callfor; > totalanswered = totalanswered + value.answered; > }); > return {'callfor': totalcallsfor, 'answered':totalanswered}; > }
That works, Thank you Patrick.
