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

# Repeat

> Repeats the children of this component once for each distinct value of a column

```liquid theme={null}
{% repeat 
	id="category_repeat" 
	data="demo.daily_orders" 
	column="category" 
%}
   {% line_chart
        data="demo.daily_orders"
        x="date"
        date_grain="month"
        y="sum(total_sales)"
        filters=["category_repeat"]
   /%}
{% /repeat %}
```

## Examples

### Basic Usage

```liquid theme={null}
{% repeat 
	id="category_repeat" 
	data="demo.daily_orders" 
	column="category" 
%}
   {% line_chart
        data="demo.daily_orders"
        x="date"
        date_grain="month"
        y="sum(total_sales)"
        filters=["category_repeat"]
   /%}
{% /repeat %}
```

### With WHERE Clause

```liquid theme={null}
{% repeat 
	id="top_categories" 
	data="demo.daily_orders" 
	column="category"
	where="total_sales > 1000"
%}
   ### {{top_categories}}
   {% line_chart
        data="demo.daily_orders"
        x="date"
        y="sum(total_sales)"
        filters=["top_categories"]
   /%}
{% /repeat %}
```

## Attributes

**id** `string` *required*

The id of this repeat component to be used in the `filters` prop of its children

**data** `string` *required*

The name of the table to query

**column** `string` *required*

The name of the column within the `data` table to get distinct values

**where** `string`

SQL WHERE clause to filter which values to repeat over

**filters** `array`

Array of filter IDs to apply when querying for distinct values


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.