KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

Sum of all values a collum on Excel #982

Closed SOFMAN opened this topic on on Jul 12, 2019 - 1 comments

SOFMAN commented on Jul 12, 2019

How append a row containing a sum of all values of the respective column?

David Winterburn commented on Jul 15, 2019

Hi there,

If using the latest version of Excel package, you could use \koolreport\excel\Table widget in an excel export template file "MyReportExcel.view.php". Set its property "showFooter" => true and make sure your columns' metadata have have a "footer' property:

"column1" => [
    "type" => "number",
    "label" => ...,
    "footer" => "sum"
]

It works very similarly to the \koolreport\widgets\koolphp\Table widget. Let us know if you have any question. Thanks!

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
help needed

Excel