> ## 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.

<AgentInstructions>

## Submitting Feedback

If you encounter incorrect, outdated, or confusing documentation on this page, submit feedback:

POST https://docs.omni.co/feedback

```json
{
  "path": "/modeling/query-views/parameters/measures",
  "feedback": "Description of the issue"
}
```

Only submit feedback when you have something specific and actionable to report.

</AgentInstructions>

# measures

> Describes how to aggregate data in the query.

<Note>
  This is a top-level parameter in query views - it shouldn't be nested under the `query` parameter.
</Note>

Omni adds this parameter to query views by default, regardless of whether a measure is in the query. The default measure creates a `COUNT(*)` that counts all rows in the query results. **Note**: Other aggregations aren't automatically added to this parameter - they are dimensionalized and added to [`dimensions`](/modeling/query-views/parameters/dimensions).

## Syntax

```yaml theme={null}
measures:
  <measure_name>:
    aggregation_type: <type>
    ...
```

## Properties

<ParamField path="measures" type="object[]">
  An object containing the individual parameters that make up a query view's query definition.

  <Expandable title="measures properties" defaultOpen="true">
    <ParamField path="measure_name" type="object">
      The name of the measure. The default measure added by Omni is named `count`.

      <Tip>
        Refer to the [Measures documentation](/modeling/measures) for a list of measure-specific parameters.
      </Tip>

      <Expandable title="measures properties" defaultOpen="true">
        <ParamField path="aggregate_type" type="string">
          The aggregation type. The default measure added by Omni is set to `count`.
        </ParamField>
      </Expandable>
    </ParamField>
  </Expandable>
</ParamField>

## Examples

```yaml title="Default count measure" theme={null}
measures:
  count:
    aggregate_type: count
```
