cognos页面处理方案
本页小计
1.在查询中加入一个数据项,内容为:running-count(1)
2.在查询中加入一个数据项,内容为
if ( mod([数值],20)=0 ) then
( floor([数值]/20)-1 )
else
( floor([数值]/20) )
—我的
if ( mod(running-count(1),20)=0 ) then
( floor(running-count(1)/20)-1 )
else
( floor(running-count(1)/20) )
3.在查询中加入要合计的数据项,例如:
本页小计:running-total ([SQL1].[本月收入] for [分组序号])
合 计:running-total ([SQL1].[本月收入] for report)
4.将需要的合计项拉到列表页面页脚中
网络搜索
本表小计
total([当月金额] for report)
本页合计
total([当月金额] for [分组序号])
分组序号
floor(running-count([客户号])/26)
小计:
case when mod(running-count([账号]),20)=0 then 20
else mod(running-count([账号]),20)
end
合计:
count(([账号]) for report)