How to have a cumulated sum

How to have a cumulated sum

vismarkvismark Posts: 79Questions: 5Answers: 0

Hi,
is there a way I can achieve something like the following example?

Col1 | Col2 | Col3
text | 10 | 10
text | 15 | 25
text | 5 | 30
text | 10 | 40

So a column that sums all the numbers of the above rows...a kind of cumulated sum?

Thanks :)

Replies

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

    Hi @vismark ,

    You could use drawCallback for that. It's called everytime there's a page draw, so you can sum that values on that page and slip it back into the table - something like this.

    Cheers,

    Colin

  • vismarkvismark Posts: 79Questions: 5Answers: 0

    thianks a lot colin, i'll give it a try as soon as i can :)

This discussion has been closed.