Skip to main content

SummaryFunc Enum

Specifies the arithmetic function to be calculated.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v24.2.dll

NuGet Package: DevExpress.Reporting.Core

Declaration

public enum SummaryFunc

Members

Name Description
Avg

Calculates the average of all the values within the specified summary region (group, page or report).

Count

Counts the number of values within the specified summary region (group, page or report).

Sum

Calculates the total of all the values within the specified summary region (group, page or report).

RunningSum

Summarizes all the values, which were printed before the current data row, with the current data row’s value.

CarryoverSum

Summarizes all the values before the current position and calculates the carried forward and brought forward totals.

Percentage

Calculates the percent ratio of the current data row’s value to the total of all the values within the specified summary region (group, page or report).

Max

Calculates the maximum of all the values within the specified summary region (group, page or report).

Min

Calculates the minimum of all the values within the specified summary region (group, page or report).

Median

Finds the middle number within a sequence.

Note that if the total number of elements is odd, this function returns the value of a middle number in a sequence. If the total number of elements is even, this function returns the arithmetical mean of the two middle numbers.

Var

Calculates the amount of variance for all the values within the specified summary region (group, page or report).

VarP

Calculates the population variance of all the values within the specified summary region (group, page or report).

StdDev

Calculates the standard deviation of all the values within the specified summary region (group, page or report).

StdDevP

Calculates the standard population deviation of all the values within the specified summary region (group, page or report).

DAvg

Calculates the average of all the distinct values within the specified summary region (group, page or report).

DCount

Counts the number of distinct values within the specified summary region (group, page or report).

DSum

Calculates the total of all the distinct values within the specified summary region (group, page or report).

DVar

Calculates the amount of variance for all the distinct values within the specified summary region (group, page or report).

DVarP

Calculates the population variance of all the distinct values within the specified summary region (group, page or report).

DStdDev

Calculates the standard deviation of all the distinct values within the specified summary region (group, page or report).

DStdDevP

Calculates the standard population deviation of all the distinct values within the specified summary region (group, page or report).

RecordNumber

Returns the current record number in the data source within the specified summary region (group, page or report). This means for instance, if the summary is calculated for a group, then the record number is calculated only within that group, and is reset every time a new group is started.

Custom

Calculates the custom summary using the XRLabel.SummaryReset, XRLabel.SummaryRowChanged and XRLabel.SummaryGetResult events.

Remarks

This enumeration is used by the XRSummary.Func property.

Note

With Expressions Bindings, calculation of custom summaries is no longer available. You are encouraged to write a custom expression with operators, functions, and constants, as described in the following help topic: Expression Language. For additional examples refer to the following help section: Calculate Summaries.

See Also