|
I have a tablix report and I am trying to add up values in column a only when values in column b are not null. So Something like this I have tried this syntax in the rexpression editor =Sum(IIF(Fields!ColimnA.Value > 0 And Fields!ColimnB.Value >0 , 1, 0) "Scope") this results in an error like "The Value expression for the textbox ‘textbox21’ has a scope parameter that is not valid for an aggregate function. The scope parameter must be set to a string constant that is equal to either the name of a containing group, the name of a containing data region, or the name of a data set."
(comments are locked)
|
|
As the error says, if you include the Scope parameter, it must be equal to tne name of the group, data region or data set name. If you have the formula in the Group footer/header, instead of "Scope" put there the name of the Group. If you have it in the footer of the whole table, you can ommit the Scope parameter, or put there the name of the Data Set. If you include the Scope parameter, the aggregation will restart with each change in the scope. If you would like cummulative sums even in group footer/hear, you should ommit the Scope parameter.
(comments are locked)
|


Perhaps it should be
ColumnArather thanColimnA...? or is that just a typo?