在SSRS中,我如何对从表达式中获取值的列求和?例如......
Field1 | Field2 | Computed Field ------ | ------ | -------------- 10 | 20 | 100 *IIF(Fields!Field1.Value > Fields!Field2.Value, 0, 100)* 40 | 20 | 0 *IIF(Fields!Field1.Value > Fields!Field2.Value, 0, 100)* 50 | 20 | 0 *IIF(Fields!Field1.Value > Fields!Field2.Value, 0, 100)* ------ ------ --------------------- HOW DO I GET THETOTAL? OF THIS COMPUTED FIELD
我尝试的事情:
预先感谢您提供任何帮助!
答案 0 :(得分:0)
您需要对表达式求和并引用数据集,例如:
=sum(IIF(Fields!Field1.Value > Fields!Field2.Value, 0, 100),"DataSet1")