cognos页面小计合计

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)


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章