Board logo

标题: 计算比去年同期增长数 [打印本页]

作者: three    时间: 2008-9-4 17:19     标题: 计算比去年同期增长数

[attach]14[/attach]

设选中单元格的公式为如下所示,有可能取不到去年本月数,如果取不到则设为0。

tmp2=销售表_.金额{年份.PRE.value(),$月}.sum();   // 取同年上月数
if(tmp2 == null)     // 如果不存在上月数,则设为0   
tmp2 = 0;
return 销售表_.金额.sum()-tmp2;


下面是此报表的部分截图:

[attach]15[/attach]



[ 本帖最后由 three 于 2008-9-4 17:21 编辑 ]




欢迎光临 杰表技术论坛 (http://jatools.com/) Powered by Discuz! 6.1.0