简体   繁体   English

在pentaho报表设计器中计算行和列的摘要

[英]Calculating summary for rows and columns in pentaho report designer

I am creating a report with some data like below: 我正在使用以下数据创建报告:

      1/1  1/2  1/3  1/4 
A    2    1    2    1
B    4    5    6    8

For the above data i would like to summarize each column and each row totals like below. 对于以上数据,我想总结每一列,每一行总计如下。

    1/1  1/2  1/3  1/4 
A    2    1    2    1    --> 6(addition of all values)

B    4    5    6    8    --> 23

     6 6 8 9   29

Please suggest how to achieve this using pentaho report designer. 请提出如何使用pentaho报表设计器来实现此目的。

We need to know more of your data but it's a classic sum in mysql : 我们需要了解更多您的数据,但这是mysql中的经典数据:

SELECT column, SUM(column) FROM table
GROUP BY column

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM