Can I display result of sum(col1)/sum(col2) on col3's footer?
Can I display result of sum(col1)/sum(col2) on col3's footer?
kqw1983
Posts: 5Questions: 2Answers: 0
Hi, I'm trying to display the division number on one column's footer from other two columns' sums. How can I achieve this by footerCallback? Thanks.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Probably what I would do is keep separate totals (variables) for the two columns then perform the calculation and place it into the appropriate columns footer or other page location.
Kevin
My code works fine with ".sum" class columns, but there is no update on "credit" header's column sum after filter rows by search.
I found the reason, which is I missed {page:'current'} in the bottom line codes. Only then will footer's sum amount be updated after filtering by search.