1

如果类型与条件相同,我想对金额进行总和计算

这是我的表达:

=SUM(IIF(Fields!transactionType.Value.Equals("BUY"),CDec(Fields!Amount.Value),0))

Fields!Amount.Value在数据库中是十进制

但它在 rdlc 报告中显示#ERROR

4

1 回答 1

0

=SUM(CDec(IIF(Fields!transactionType.Value.Equals("BUY"),Fields!Amount.Value,0)))

因为 IIF(Fields!transactionType.Value.Equals("BUY"),CDec(Fields!Amount.Value),0) 返回对象

于 2013-07-04T08:15:48.880 回答