Articles in this section

Summary Calculations

Summary calculations are aggregate functions used for sub-totals and totals. Summary calculations can be set in the Domain Designer or in the Ad Hoc view.

  • In Ad Hoc table views, each field can display a single summary calculation. The summary calculation is automatically applied to all groups in the table. Summaries appear at the bottom of each group, as well as at the bottom of the view. When a new group is added, it includes a summary for each column.
  • In crosstabs, each measure displays a summarized value. Summaries determine the values of the totals at the intersection of each row and column.
  • In charts, the type of chart determines whether measures are summarized. If summaries are used, they determine the size or location of the graphical elements that represent your data.
letter-v_4553024.png For dual pie charts, the summary function for the field needs to be "Sum" or "CountAll." Dual pie charts with other summary functions may give unexpected results.

In general, you can change the summary calculation of any measure. By default, Zoola™ summarizes fields of each datatype as follows:
 

Datatype

Default Summary 
Calculation

Description

NumericSumDisplays the sum of all values in the set.
DateCountAllDisplays the total number of values in the set.
StringCountAllDisplays the number of values in the set.
BooleanCountAllDisplays the number of values in the set.
AggregateAggregateFormulaFor a calculated field that uses an aggregate function, uses the same aggregate formula as the summary.
CombinedNoneFor a calculated field that combines an aggregate function with a non-aggregate function, the summary calculation is null.

Select from the following options to set a measure's summary function in any type of view:

Function

Meaning

Available for

AggregateFormulaFor a calculation that uses an aggregate function, uses the same aggregate formula as the summary.Aggregate
AverageDisplays the average of all values in the set.Numeric
CountAllDisplays the number of rows in the set.Boolean, Date, Numeric, and String
CountDistinctDisplays the number of unique values in the set.Boolean, Date, Numeric, and String
CustomAllows you to enter an aggregate calculation for the summary. Only available for calculated fields and measures in the Ad Hoc Editor; not available for Domains.Aggregate, Date, Numeric
MaxDisplays the highest value in the set.Date, Numeric
MedianDisplays the median value of the set.Date, Numeric
MinDisplays the lowest value in the set.Date, Numeric
ModeDisplays the value that occurs most frequently in the set.Boolean, Date, Numeric, and String
NoneThe aggregate function is null; no summary function is displayed.Aggregate, Boolean, Date, Numeric, and String
RangeDisplays the difference between the minimum and maximum values of the set.Numeric
RangeDaysDisplays the difference in days between the minimum and maximum values of the set.Date
RangeHoursDisplays the difference in hours between the minimum and maximum values of the set.DateTime
RangeMinutesDisplays the difference in minutes between the minimum and maximum values of the set.DateTime
RangeMonthsDisplays the difference in months between the minimum and maximum values of the set.Date
RangeQuartersDisplays the difference in quarters between the minimum and maximum values of the set.Date
RangeSemisDisplays the difference in semi-annual periods between the minimum and maximum values of the set.Date
RangeWeeksDisplays the difference in weeks between the minimum and maximum values of the setDate
RangeYearsDisplays the difference in years between the minimum and maximum values of the set.Date
Aggregate FormulaUses the aggregate formula used to define the calculated field as the summary function, and sets the level appropriately for the context.Aggregate
StdDevPDisplays the standard deviation for the population of the set.Numeric
StdDevSDisplays the standard deviation on a sample for the set.Numeric
SumDisplays the grand total for the set.Numeric
WeightedAverageDisplays the weighted average for the set, based on a second numeric field or expression. Only available for calculated fields and measures in the Ad Hoc Editor; not available for Domains.Numeric


Note the following about summaries:

  • If you select a summary calculation other than the default, the selected summary calculation is shown in parentheses after the field name in the Field picker.
  • In Ad Hoc views, you can create unique behaviours when you create a calculated field or measure with the following type of summary calculation:
    • If you create a Custom summary calculation for a field or measure, Custom is available on the Change Summary Function menu for that field. It is not available otherwise.
    • If you create a WeightedAverage summary calculation for a field or measure, WeightedAverage is available on the Change Summary Function menu for that field. It is not available otherwise.
    • You can remove summaries by setting the summary function to None.
    • Only "AggregateFormula," "Custom," or "None" are supported as summary calculations for aggregate functions.

"Custom" only appears in the Change Summary context menu if you have defined a custom function in the Create Calculated Field dialogue box.

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.