是否可以使用 Crystal Report 交叉表创建以下报表?
这是报告:
Growth Rate= (Last Year - First Year)/Total each Area
这是我的结果集:
Year Area PeopleCount
2005 A 3
2005 B 2
.... .... ....
如果可以的话,请给我一些建议。
我已将您的示例数据提取到 csv 中:http://speedy.sh/cY9d2/test.txt http://speedy.sh/cY9d2/test.txt
然后构建一个显示您想要的内容的报告:http://speedy.sh/XC4VJ/test.rpt http://speedy.sh/XC4VJ/test.rpt
我确信有一种更简单的方法,但交叉表确实带来了一些困难。这是我与计算成员结合使用的公式:
(
(
GridValueAt (CurrentRowIndex, GetNumColumns - 3, 0)
-
GridValueAt (CurrentRowIndex, 0, 0)
)
/ GetTotalValueFor ("test_txt.Year")
)
* 100
简单来说就是GridValueAt (CurrentRowIndex, GetNumColumns - 3, 0)
行取最后一个值,GridValueAt (CurrentRowIndex, 0, 0)
行取第一个值并且/ GetTotalValueFor ("test_txt.Year")
行总计。
让我们知道您的进展情况,如果需要,我们可以提出一些替代解决方案。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)