KoolReport's Forum

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

Using count won't return a count of 1 #200

Open fastdevice opened this topic on on Jan 23, 2018 - 1 comments

fastdevice commented on Jan 23, 2018

When using: ->pipe(new Group(array(

        "by"=>"x",
        "count"=>"y"
    )))

If the count is 1, it returns the value of the numeric data or if a string, it returns a null. I'm expecting it to return a count of 1.

KoolReport commented on Jan 30, 2018

Sorry for my late answer. If you put y=1, it will return the count of column name 1 which is not available, so result is unexpected. Please insert an existed column name there.

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