KoolReport's Forum

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

Time bucket #713

Closed Ahmed Bucheeri opened this topic on on Feb 27, 2019 - 3 comments

Ahmed Bucheeri commented on Feb 27, 2019

Hi there

Can I do this

        ->pipe(new TimeBucket(array(
          "StartTime"=>"month"
        )))
        ->pipe(new Group(array(
          "by"=>"StartTime",
          "sum"=>"LostTime",
          "sum"=>"Interruption"
        )))
KoolReport commented on Feb 27, 2019

You use correctly except for this:

          "sum"=>"LostTime",
          "sum"=>"Interruption"

it should be:

"sum"=>array("LostTime","Interruption")

or simply

"sum"=>"LostTime,Interruption"
Ahmed Bucheeri commented on Feb 27, 2019

Thanks for quick support Yes, it works

KoolReport commented on Feb 27, 2019

Awesome :)

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
None yet

None