Skip to main content

Overview

Computed Fields and Roll-Up Fields are advanced field types that automatically calculate values based on your data, eliminating manual data entry and ensuring accuracy across your CRM.
  • Computed Fields use formulas to calculate values from other fields on the same record. For example, you can calculate a discount percentage, determine days until a deadline, or concatenate names into a full name field.
  • Roll-Up Fields aggregate data from related records. For example, you can count the number of deals associated with an account, sum the total revenue from all opportunities, or find the most recent activity date across all contacts.
These fields update automatically whenever the underlying data changes, saving time and reducing errors. They’re particularly valuable for:
  • Creating custom metrics and KPIs
  • Automating calculations that drive business logic
  • Aggregating data for reporting and analysis

Prerequisites

Before creating Computed or Roll-Up Fields, ensure you have:
  • Permission to manage custom fields in your organization
  • Access to the object settings page for the object where you want to add the field (Contacts, Accounts, Opportunities, etc.)
  • A clear understanding of which fields or related records you want to use in your calculation
  • For Roll-Up Fields: existing relationships between the objects you want to aggregate

Step-by-Step Instructions

Creating a Computed Field

  1. Navigate to the object settings page for the object where you want to add the field (e.g., Contacts, Accounts, Opportunities).
  2. Click the Add field button and select Create computed field from the dropdown menu.
  3. Enter a Display name for your field (2-40 characters).
  4. Add an optional Description to help your team understand what this field calculates.
  5. Build your formula in the formula editor. The editor will show you:
    • A text area where you can write your formula
    • Available Functions tab showing mathematical, text, date, and logical functions you can use
    • Available Fields tab showing all fields you can reference in your formula
  6. As you type your formula, watch the Preview result section below the editor. This shows you a live preview of how your formula will calculate, along with the result type (number, text, date, etc.).
  7. Use the Available Functions tab to explore functions by category. Click on any function to see its syntax, parameters, return type, and examples.
  8. Use the Available Fields tab to browse available fields. Click on any field to insert it into your formula. Fields are organized by object and field type for easy navigation.
  9. Optionally, check Pin field in object details page to make this field easily accessible in the details view.
  10. Click Save to create your computed field. The system will validate your formula and begin calculating values for all existing records.

Creating a Roll-Up Field

  1. Navigate to the object settings page for the object where you want to add the field.
  2. Click the Add field button and select Create rollup field from the dropdown menu.
  3. Enter a Display name for your field (2-40 characters).
  4. Add an optional Description to explain what this field aggregates.
  5. Select a Data source object type. This is the type of related records you want to aggregate (e.g., if you’re on Accounts and want to count Opportunities, select Opportunity). Note that you cannot select the same object type you’re currently on.
  6. Choose a Roll-up type from these options:
    • Count: Count the number of related records
    • Sum: Add up values from a numeric field
    • Average: Calculate the average of a numeric field
    • Minimum: Find the smallest value (works with numbers and dates)
    • Maximum: Find the largest value (works with numbers and dates)
  7. If you selected Sum, Average, Minimum, or Maximum, select the Related field you want to aggregate. The dropdown will only show fields compatible with your chosen roll-up type.
  8. Optionally, add Filters to limit which related records are included in the calculation. For example, only count deals with a certain stage, or sum amounts above a threshold. You can combine multiple filters using AND or OR logic.
  9. Optionally, check Pin field in object details page for quick access.
  10. Click Save to create your roll-up field. The system will calculate values for all existing records based on their related data.

Troubleshooting / FAQs

Verify that:
  • Your formula syntax is correct (check the function examples in the Available Functions tab)
  • All field references exist and are spelled correctly
  • The functions you’re using are compatible with your field types (e.g., mathematical functions require numeric fields)
Field availability depends on your roll-up type. Sum and Average only work with numeric fields, while Minimum and Maximum work with both numeric and date fields. Count doesn’t require selecting a field at all.
No, roll-up fields must aggregate data from a different, related object type. For example, on an Account, you can roll up data from Contacts or Deals, but not from other Accounts.
If other computed or roll-up fields reference the field you’re modifying, you’ll see a warning alert. The system will show you which fields are affected and inform you that changing the formula will trigger additional calculations across those dependent fields.
For new fields, the system begins calculating values immediately after creation. The time required depends on the number of existing records. Ongoing updates happen automatically whenever the underlying data changes.
Yes, you can edit the display name, description, and pinning preference at any time. For computed fields, you can also modify the formula. For roll-up fields, the data source object type cannot be changed after creation, but you can modify the roll-up type, related field, and filters.
Pinning a field makes it appear prominently in the object details page for quick access. This is useful for fields you reference frequently.
The preview section shows both the calculated result and the data type (number, text, date, boolean, etc.). The system automatically determines the output type based on your formula.