Grouping with aggregate functions

Grouping with aggregate functions

andreaciandreaci Posts: 2Questions: 0Answers: 0
edited May 2018 in Free community support

Ok, I was kind of stuck trying to get totals, averages and everything else in group headers while grouping on a specific field

I realized this fiddle when I got it working with a pretty standard function:

https://jsfiddle.net/andreaci/gcs1gym3/1/

the groupcallback function takes all data in inputs from the drawCallback and create the cells.
Please notice the "aggregate" field in the columns object.

if someone wants to contribute is very welcome! :)

Replies

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    Hi @andreaci ,

    You might want to look at this example here, it's doing pretty much the same thing.

    Cheers,

    Colin

  • andreaciandreaci Posts: 2Questions: 0Answers: 0

    Yes, but I wanted something more generic that I can reuse simply changing a property in a column :)

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    Gotcha! :)

This discussion has been closed.