Aggregates data based on model or data type information.
This function can be thought of as a calculate and then aggregate rule.
Data is aggregated using the following rules:
If the underlying data source type is relational and the
data item or calculation is a reference to a single fact query item in
the model that has the Regular Aggregate
property set to Sum, Maximum,
Minimum, Average,
or Count, aggregate data using
this function. Otherwise, data is aggregated according to the data type
of the data item as follows:
- Total
is applied for numeric and interval values.
- Maximum
is applied for date, time, and date-time values.
- Count
is applied for everything else.
The underlying data source type can be dimensional and the
data item or calculation a reference to a single item in the model. In
this case, if the Regular Aggregate
property of the model item is not unknown, the summary function that corresponds
to the Regular Aggregate property
is applied. If the Regular Aggregate
property is unknown, set the function to Calculated.
For example, a list contains the data item Quantity with
the Aggregation property set to
Average. You add a query calculation
named Quantity Summarize. You define its expression as Quantity + 100
and you set its Aggregation property
to Summarize. When you run the
report, the values for Quantity Summarize are computed by first adding
100 to each value for Quantity and then calculating the total. The total
is calculated because Quantity contains numeric values and the expression
for Quantity Summarize is not a simple data item reference. If Quantity
Summarize is defined as simply Quantity, the function Average
is applied to each value.