Skip to main content

Association

Association fields aggregate data from related collections using SQL-like aggregate functions. They pull values across multiple related records and apply calculations.

View all settings
SettingDescription
Field NameText input, required. Unique identifier for the association.
Input TypeDropdown, required. Choose Many To One or Has One.
Display LabelText input. Human-readable label shown in forms.
Sort OrderNumber input, defaults to 0. Position in field lists.
IconIcon picker. Visual identifier.
RelationDropdown, required. The relational field to aggregate from.
Association FieldDropdown, required. Field from the related collection to aggregate. Populates after selecting a Relation.
Aggregator FunctionDropdown. Only appears for Many To One. Choose SUM, COUNT, AVG, MIN, MAX, or CONCAT.
ConcatText input. Separator for CONCAT aggregator. Only appears when Aggregator Function is CONCAT.
Save to DatabaseToggle. Persist the aggregated value. Only appears for non-CONCAT aggregators.
StatusToggle, defaults to true. Enable or disable the field.
RequiredCheckbox. Make the association mandatory.
DescriptionText area. Documents the field's purpose.

Input Types

Choose the input type based on your relationship cardinality:

  • Many To One — Aggregate data from multiple related records to one
  • Many To Many — Aggregate data across a many-to-many relationship
  • Has One — Pull a single value from a one-to-one related record. No aggregator function needed

Many To One and Many To Many show the Aggregator Function options (SUM, COUNT, AVG, MIN, MAX, CONCAT).

Basic Settings

Enter a Field Name using camelCase. Select the Relation to specify which relational field provides the data source — once selected, the Association Field dropdown populates with available fields from that related collection.

For Many To One and Many To Many relationships, choose an Aggregator Function to determine how multiple values are combined:

FunctionDescription
SUMTotal of numeric values
COUNTNumber of related records
AVGAverage of numeric values
MINSmallest value
MAXLargest value
CONCATCombine text values with a separator

When using CONCAT, a Concat field appears to specify the separator (e.g., , or -).

For other aggregators, a Save to Database toggle appears to persist the calculated value.

Advanced Settings

The Description text area lets you document the association's purpose for your team.

Query Filters

The Query Filters tab lets you restrict which related records are included in the aggregation:

SettingDescription
FieldSelect a field from the related collection to filter on.
OperatorComparison operator (is equal to, is not equal to, contains, etc.).
ValueThe value to compare against.
From FormPull the filter value from a form field instead of a static value.
OptionalMake this filter condition optional.

Click Add Filter to add multiple conditions.

Use Cases

  • Count orders per customer — Many To One with COUNT
  • Total revenue per product — Many To One with SUM on price field
  • Average rating per item — Many To One with AVG on rating field
  • Latest activity date — Many To One with MAX on date field
  • Customer name from order — Has One to pull single related value

Difference from Compute

AspectAssociationCompute
ScopeAggregates across multiple related recordsCalculates within a single record
Data sourceRelated collectionsSame record's fields
Use caseTotals, counts, averagesFormulas, concatenation, derived values