> ## Documentation Index
> Fetch the complete documentation index at: https://docs.omni.co/llms.txt
> Use this file to discover all available pages before exploring further.

# sets

> Defines a list of fields that can be referenced in parameters that accept lists of fields.

Defines a list of fields that can be referenced in parameters that accept lists of fields, such as [`drill_fields`](/modeling/measures/parameters/drill-fields).

Once defined, you can reference a set with `[ set:<set_name> ]`. Refer to the [Examples](#examples) section for more information.

## Syntax

```yaml theme={null}
sets:
  <set_name>:
    - "<view_name>.<field_name>"
    - "<view_name>.<field_name>"
    ...
```

## Properties

<ParamField path="set_name" type="string[]" required>
  A name that uniquely identifies the field set. The value is an array of field references in the format `view_name.field_name`.
</ParamField>

## Examples

```yaml title="Define a field set named revenue" theme={null}
sets:
  revenue:
    - "order_items.id"
    - "order_items.item_id"
    - "order_items.sales_price"
```

```yaml title="Referencing the revenue set" theme={null}
measures:
  count:
    aggregate_type: count
    drill_fields: [ set:revenue ]
```
