做资产负债表时,某些项目是 引用科目余额表几个科目相加,应该怎么配置?
你单独再写一个数据集就行了,把科目余额的数据写成一个数据集,再放到单元格相加就行了
select
sum(case when acc_code in(1001,1002) then amount else -amount end ) as 金额
from 科目表
where 1=1
and acc_code in(1001,1002,1003)
多源报表实现数据过滤