KoolReport's Forum

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

Sum a value from custom value column #2847

Closed Yordy opened this topic on on Oct 14, 2022 - 1 comments

Yordy commented on Oct 14, 2022

Hi! i was trying to get the sum of a custom value column like this: array(

"label"=>"ST",
"value"=>function($row){
    $cvon=10;
    $cvof=15;
    $off=5;
    $result=(($row['on']+$cvof+$off)-$cvon-$cvof-$off);
    return $result;
},
"footer"=>"sum",
"footerText"=>"Total: @value"

) but it returns "Notice: Undefined index: __custom0" any idea? Thanks!

Yordy commented on Oct 16, 2022

Solved: I had Created a calculated column, so with this the problem is solved.

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
bug
help needed

None