> For the complete documentation index, see [llms.txt](https://docs.chartsql.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.chartsql.com/reference/directives/baselines.md).

# @baselines

Horizontal marks added to charts to mark major comparative values of a series like the average, median, min or max.

## Quick Reference

```sql
-- @baselines: Amount, UnitsSold 
```

## Valid Values

`List`

Baselines must be a comma separated list of columns that map to the columns used within the @series or @secondary-series

{% hint style="info" %}
See also [@baseline-types](/reference/directives/baseline-types.md) for defining if the baseline is an average, median, min or max
{% endhint %}

## Full Example

```sql
-- @chart: column
-- @title: Baselines - Average Baseline
-- @subtitle: An example column chart showing sales by month
-- @formats: currency
-- @series: Sales
-- @baselines: Sales
SELECT 
	TRUNC(date_closed, 'MONTH') as Month,
	sum(amount) as Sales
FROM sales
GROUP BY TRUNC(date_closed, 'MONTH')
ORDER BY TRUNC(date_closed, 'MONTH') ASC
```

<figure><img src="https://4045370218-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FB0xzzR5x0BnQ6kHixlzd%2Fuploads%2Fs9YtqpyCAKVfmzMEKAYn%2Fbaselines_example.jpg?alt=media&amp;token=0d0eb41a-1e8e-42b5-96f7-3fe7dfd5fd9c" alt=""><figcaption></figcaption></figure>

## Use Cases

Baselines are good to show how a series value compares to to the average, min, max or median of the whole set. It helps give some context to the series data.

## Example Charts

<table data-view="cards"><thead><tr><th data-card-target data-type="content-ref"></th><th data-hidden></th><th data-hidden></th><th data-hidden></th><th data-hidden data-card-cover data-type="files"></th></tr></thead><tbody><tr><td><a href="/charts/formatting-and-rendering/baselines.md">Baselines</a></td><td></td><td></td><td></td><td><a href="https://4045370218-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FB0xzzR5x0BnQ6kHixlzd%2Fuploads%2Fs9YtqpyCAKVfmzMEKAYn%2Fbaselines_example.jpg?alt=media&amp;token=0d0eb41a-1e8e-42b5-96f7-3fe7dfd5fd9c">baselines_example.jpg</a></td></tr><tr><td><a href="/charts/formatting-and-rendering/baselines.md#multiple-baselines-for-one-series">Baselines</a></td><td></td><td></td><td></td><td><a href="https://4045370218-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FB0xzzR5x0BnQ6kHixlzd%2Fuploads%2F6J8L7maSfdf5TVfGcRQ2%2Fbaseline-types_example.jpg?alt=media&amp;token=45123e20-e50c-4874-be1f-122f84f72eeb">baseline-types_example.jpg</a></td></tr></tbody></table>
