Once again - your support is excellent and looking for some guidance for my novice JS skills...
My question; how do I add the sum of one column to the groupRenderer:
For example, in this case (copied from the min/max Age example) I can find the max/min of "Completed" but how would I include the Total or Sum of completed?
{
field : 'category',
text : 'Category',
width : 250,
hidden: false,
groupRenderer({ groupRowFor, groupRecords,count }) {
const
max = groupRecords.reduce((max, r) => Math.max(r.Completed 0, max), 0),
min = groupRecords.reduce((min, r) => Math.min(r.Completed 0, min), max);
return `${groupRowFor} - Number of records: ${count} with max of ${max} `;
}
},
where I'd like to return ${groupRowFor} - Number of records: ${count} with a total of ${sum}
;