我有一个关于birt多级分组的问题。我有一个返回以下内容的数据集:
+---------+---------+---------+---------+---------+---------+
| Column0 | Column1 | Column2 | Column3 | Column4 | Column5 |
+---------+---------+---------+---------+---------+---------+
| Data00 | Data11 | Data21 | Data | Data | Data |
+---------+---------+---------+---------+---------+---------+
| Data00 | Data11 | Data21 | Data | Data | Data |
+---------+---------+---------+---------+---------+---------+
| Data00 | Data11 | Data22 | Data | Data | Data |
+---------+---------+---------+---------+---------+---------+
| Data00 | Data11 | Data22 | Data | Data | Data |
+---------+---------+---------+---------+---------+---------+
| Data00 | Data12 | Data23 | Data | Data | Data |
+---------+---------+---------+---------+---------+---------+
| Data00 | Data12 | Data23 | Data | Data | Data |
+---------+---------+---------+---------+---------+---------+
| Data00 | Data12 | Data23 | Data | Data | Data |
+---------+---------+---------+---------+---------+---------+
| Data00 | Data12 | Data23 | Data | Data | Data |
+---------+---------+---------+---------+---------+---------+
现在我需要创建一个包含多级分组的报告,该报告将给出如下所示的结果:
+---------+---------+---------+---------+---------+---------+
| Column0 | Column1 | Column2 | Column3 | Column4 | Column5 |
+---------+---------+---------+---------+---------+---------+
| Data00 | Data11 | Data21 | Data | Data | Data |
+ + + +---------+---------+---------+
| | | | Data | Data | Data |
+ + +---------+---------+---------+---------+
| | | Data22 | Data | Data | Data |
+ + + +---------+---------+---------+
| | | | Data | Data | Data |
+ +---------+---------+---------+---------+---------+
| | Data12 | Data23 | Data | Data | Data |
+ + + +---------+---------+---------+
| | | | Data | Data | Data |
+ + + +---------+---------+---------+
| | | | Data | Data | Data |
+ + + +---------+---------+---------+
| | | | Data | Data | Data |
+---------+---------+---------+---------+---------+---------+
我已经尝试过“Drop”和“Suppress duplicates”。除了删除组头之外,不可能的单元格也会丢失。该报告生成如下所示的数据,并在组标题上显示空单元格:
+---------+---------+---------+---------+---------+---------+----------------------------------------+
| Column0 | Column1 | Column2 | Column3 | Column4 | Column5 | Explanation |
+---------+---------+---------+---------+---------+---------+----------------------------------------+
| Data00 | | | | | | <--Empty cells of group header Data00 |
+ +---------+---------+---------+---------+---------+----------------------------------------+
| | Data11 | | | | | <--Empty cells of group header Data11 |
+ + +---------+---------+---------+---------+----------------------------------------+
| | | Data21 | | | | <--Empty cells of group header Data21 |
+ + + +---------+---------+---------+----------------------------------------+
| | | | Data | Data | Data | |
+ + + +---------+---------+---------+----------------------------------------+
| | | | Data | Data | Data | |
+ + + +---------+---------+---------+----------------------------------------+
| | | | Data | Data | Data | |
+ + + +---------+---------+---------+----------------------------------------+
| | | | Data | Data | Data | |
+ +---------+---------+---------+---------+---------+----------------------------------------+
| | Data12 | | | | | <--Empty cells of group header Data12 |
+ + +---------+---------+---------+---------+----------------------------------------+
| | | Data23 | | | | <--Empty cells of group header Data23 |
+ + + +---------+---------+---------+----------------------------------------+
...
...
...etc
是否可以像上面的第二个表一样使用丢弃单元格对数据进行分组?
答案 0 :(得分:0)