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)


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