BIRT 分组如何
我是 BIRT 新手,正在寻求帮助。我已经设置了一个基本分组,为每个“计算机主机”显示一个包含当前虚拟运行及其操作系统的表。
在 BIRT 中,我有一个包含“主机”组(数据项)的表。然后我有数据项“虚拟机名称”和数据项“OSnameOfVM”。
示例:
"Name of Host"
VMNAME__:OS NAME
Virutal1:Windows
Virutal2:Linux
Virutal3:Winows
Virutal4:Linux
这个示例我已成功设置,并且可以与分组一起使用。
问题:
我想添加的是每个组的表格形式的摘要(或最适合此目的的任何报告项目)。这个额外的“汇总表”应该列出每个操作系统一次(针对该特定表),然后对其进行计数。
示例继续:
"Name of Host"
VMNAME__:OS NAME
Virutal1:Windows
Virutal2:Linux
Virutal3:Winows
Virutal4:Linux
Summary Table
Windows: 2
Linux: 2
我确实尝试创建一个数据立方体来解决这个问题。但它出现在报告的末尾,并成为所有表格的全局摘要。 (我想这是预料之中的。)
我希望我已经为这个问题提供了足够的信息。
帮助appriced,提前感谢=)
I'm new to BIRT and looking for some help. I've already set up a basic grouping that for every "Computer Host" shows a table with the current virtual running and its operative system.
In BIRT I have a table with a group "Hosts" (data item). Then I have the data items "Virtual Machinese Name" and the data item "OSnameOfVM".
example:
"Name of Host"
VMNAME__:OS NAME
Virutal1:Windows
Virutal2:Linux
Virutal3:Winows
Virutal4:Linux
This example I've succesfully set up, and it works with grouping.
THE PROBLEM:
What I want to add is a summary in the form of a table (or whatever report item that would be most suited for this) for each group. This extra "summary table" should list each operative system once (for that particulair table) and then count it.
example continue:
"Name of Host"
VMNAME__:OS NAME
Virutal1:Windows
Virutal2:Linux
Virutal3:Winows
Virutal4:Linux
Summary Table
Windows: 2
Linux: 2
I did try to create a data cube to solve this. But it showed up in the end of the report and became a global summary for all tables. (well that was expected I guess.)
I hope I have provided enough information for this problem.
Help appriciated, thanks in advance =)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您应该能够使用内置聚合工具创建和填充汇总表。在控制面板上查看底部的“聚合”。从那里您可以设置聚合数据项。在您的情况下,可能是对操作系统数据项的计数。
然后,要将它们添加到报告中,您可以将数据项本身移动到给定表中的任何位置。为了避免重复(并确保它可以看到给定组中的所有数据),您可能会向组页脚添加一个汇总表,然后将聚合添加到该汇总表。
You should be able to create and populate the summary table using the built-in aggregation tool. On the Control palette look toward the bottom for "Aggregation". From there you can set up your aggregation data items. In your case probably a count on the OS data item.
Then to add them to the report, you can move the data item itself anywhere you want in a given table. TO avoid it repeating (and to ensure it can see all the data in a given group) you would probably add a summary table to the group footer, and then add your aggregations to that summary table.
您必须创建一个表,将其绑定到您的数据集,并按“操作系统名称”添加组。 [OS NAME]
Data
元素将出现在组标题行中。然后在同一行中添加一个聚合
单元格(使用 COUNT 函数)。You have to create a table, bind it to your data set, add a group by "OS NAME". [OS NAME]
Data
element will appear into the group header row. Then add anAggregation
cell (with COUNT function) in the same row.