根据另一个列值(SSRS)计算一列的总和

时间:2019-01-24 15:55:40

标签: reporting-services ssrs-2012 ssrs-2008-r2 ssrs-tablix

数据如下图所示(源描述和总份额)为两列

  

来源494,482,729,319.98998
     首字母
     已过滤
     最终494,482,729,319.98998

我的表达式在报告的输出(预览部分)中引发#Error

=SUM( Fields!total_shares.Value * 
SWITCH(Fields!Source_Description.Value = "Initial" OR Fields!Source_Description.Value = "Inserted", 1,
        Fields!Source_Description.Value = "Filtered" OR Fields!Source_Description.Value = "Deleted" OR Fields!Source_Description.Value = "Final", -1,
        True,0
        )
)

你能帮我哪里错了吗?

0 个答案:

没有答案