SSRS - 对从 IIF 表达式获取其值的列求和

SSRS - Sum a column that gets its value from an IIF expression

在 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

我尝试过的事情:

在此先感谢您提供的任何帮助!

您需要对表达式求和并引用数据集,例如:

=sum(IIF(Fields!Field1.Value > Fields!Field2.Value, 0, 100),"DataSet1")