Crystal reports Crystal报告组摘要的总和
我有一份报告,其中我试图将一个小组的总结总结给另一个小组。例:Crystal reports Crystal报告组摘要的总和,crystal-reports,Crystal Reports,我有一份报告,其中我试图将一个小组的总结总结给另一个小组。例: group 1: 75 <- sum of the maximums group 2: 50 <- max of the group line 1: 50 line 2: 40 line 3: 10 group 2: 25 <- max of the group
group 1: 75 <- sum of the maximums
group 2: 50 <- max of the group
line 1: 50
line 2: 40
line 3: 10
group 2: 25 <- max of the group
line 1: 10
line 2: 2
line 3: 25
Group1:75如果必须在Group1头中包含该值,那么我认为您唯一的选择将是SQL表达式
Group1页脚会容易得多。要点是,您可以简单地使用一个变量跟踪最大值之和
//Place this formula in the Group1 Header
whileprintingrecords;
numbervar g1sum := 0;
//Place this formula in the Group2 Footer
whileprintingrecords;
numbervar g1sum;
g1sum := g1sum + maximum({table.value},{table.group2_field})
//Place this formula in the Group1 Footer
whileprintingrecords;
numbervar g1sum;
我想我可以把摘要记在页脚。谢谢效果很好