RunningValue Function (ReportViewer)
Returns a running aggregate of the specified expression.
(Data type is determined by the aggregate function specified in Function.) The expression on which to perform the aggregation. The expression cannot contain aggregate functions.
(Enum) The name of the aggregate function to apply to the expression. This function cannot be RunningValue, RowNumber, or Aggregate.
(String) The name of a data table, object, grouping, or data region that contains the report items to which to apply the aggregate function. If a data table or object is specified, the running value is not reset throughout the entire dataset. If a grouping is specified, the running value is reset when the group expression changes. If a data region is specified, the running value is reset for each new instance of the data region. For more information about the Scope parameter, see Built-in Functions for ReportViewer Reports.
The following code example provides a running sum of the cost field in the outermost data region.
RunningValue(Fields!Cost.Value, Sum, Nothing)