Using aggregate calculated fields

You can create calculated fields with an aggregation (average, count, min, max, sum) that can calculate and display rollup information. For example, a column on the Accounts list view that displays the number of open tickets for each account.
Note: Calculated fields with an aggregation can only be added and edited in the Web Client Query Builder, but are also available in the Windows Client, Administrator, and Architect. Only the system administrator and users with the appropriate role can access these features.

When creating or editing an aggregate calculated field:

  1. Access the Query Builder page. See Accessing the Query Builder.
  2. Click Calculations. The Calculations Fields window is displayed.
    Note: Only the system administrator and users with the appropriate role can access this option.
  3. Click Add to create a new field.
    Note: You can also select the aggregate calculated field and click Edit.
  4. Specify this information on the Properties tab:
    Name/Alias
    Name of the base table.
    Base Table
    Type of the base table.
    Calculation Type
    Type of the calculation.
    Description
    Description of the base table.
    Note: The aggregate calculated fields must always be Numeric.
  5. Click the Calculation tab.
  6. Select the field from the base table or joined table to add the field in the calculation field.
  7. Select an option from the Aggregate field. Possible values:
    • Average
    • Count
    • Min
    • Max
    • Sum
    Note: Optionally you can also click Condition tab to add a condition statement to further process the data included in a calculated field using the syntax: TableName.FieldName operator ‘value’ For example, Opportunity.Closed <>‘T’
  8. Click OK.
    Note: The calculated field is appended at the end of the list of calculated fields in the Calculated Fields window.
  9. Click Close to close the Calculated Fields window.
  10. Click OK to close Query Builder.