Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果类型与条件相同,我想对金额进行总和计算
这是我的表达:
=SUM(IIF(Fields!transactionType.Value.Equals("BUY"),CDec(Fields!Amount.Value),0))
Fields!Amount.Value在数据库中是十进制
Fields!Amount.Value
但它在 rdlc 报告中显示#ERROR
=SUM(CDec(IIF(Fields!transactionType.Value.Equals("BUY"),Fields!Amount.Value,0)))
因为 IIF(Fields!transactionType.Value.Equals("BUY"),CDec(Fields!Amount.Value),0) 返回对象