How to have a cumulated sum
How to have a cumulated sum
![vismark](https://secure.gravatar.com/avatar/9c8e124234af56336e7778bc93d3eeb9/?default=https%3A%2F%2Fvanillicon.com%2F9c8e124234af56336e7778bc93d3eeb9_200.png&rating=g&size=120)
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
This discussion has been closed.
Replies
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
thianks a lot colin, i'll give it a try as soon as i can![:) :)](https://datatables.net/forums/resources/emoji/smile.png)