使用计数函数时报告中的空行

Empty rows in report when using count function

我在 mongodb 数据源中使用 BIRT 报告。我正在尝试计算一些事件。 COUNT 函数给出了正确的值,但根据计数值,页面末尾有很大的空白 space。如果计数值很大,则页面的其余部分为空,下一页将出现相同的记录,例如: 在此图像中,页面的其余部分是空的,下一页也会出现相同的记录。似乎正在打印空的 space。

我的报告是这样的:

COUNT 函数:

我也尝试过使用 SUM,但是当我使用 SUM 函数而不是 COUNT 时出现此错误:

    org.eclipse.birt.report.engine.api.EngineException: A BIRT exception occurred. See next exception for more information.
Can not convert the value of True to Double type.
   at org.eclipse.birt.report.engine.executor.ExecutionContext.addException(ExecutionContext.java:1245)
   at org.eclipse.birt.report.engine.executor.ExecutionContext.addException(ExecutionContext.java:1224)
   at org.eclipse.birt.report.engine.executor.DataItemExecutor.execute(DataItemExecutor.java:101)
   at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportItemExecutor.execute(WrappedReportItemExecutor.java:46)
   at org.eclipse.birt.report.engine.internal.executor.emitter.ReportItemEmitterExecutor.execute(ReportItemEmitterExecutor.java:46)
   at org.eclipse.birt.report.engine.internal.executor.dup.SuppressDuplicateItemExecutor.execute(SuppressDuplicateItemExecutor.java:43)
   at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.execute(HTMLAbstractLM.java:468)

请帮忙,提前致谢。

我明白了这个问题。如果我们 select "Hide Detail" 组中的选项,那么这个问题就会消失。