[Yandex Cloud documentation](../../../index.md) > [Yandex DataLens](../../index.md) > Charts > Chart parameters > Adding an ID as a parameter

# Adding an ID as a parameter in Yandex DataLens

To provide a filter to a chart as a parameter:


{% note warning %}

If you use the new DataLens object model with [workbooks and collections](../../workbooks-collections/index.md):

1. In the left-hand panel, select ![collections](../../../_assets/console-icons/rectangles-4.svg) **Collections and workbooks**.
1. Open the workbook you need and select an object.

Proceed with this guide from Step 2.

{% endnote %}


1. In the left-hand panel, click ![image](../../../_assets/console-icons/circles-intersection.svg) **Datasets** and select the dataset you need. If you do not have a dataset, [create one](../../dataset/create-dataset.md#create).
1. In the top-left corner, select the **Fields** tab.
1. To the right of the field in the same row, click ![image](../../../_assets/console-icons/ellipsis.svg) and select **Copy ID**.
1. Open the chart you want to add a parameter to, then click ![image](../../../_assets/console-icons/ellipsis.svg) → **Copy link** at the top. You can also copy the chart URL from the browser address bar.
1. Add the field ID to the chart URL as a request parameter. Your link should have this format: `https://datalens.ru/wizard/yfn1k6yxud7yr-example-chart?17ecb9a1-c8a5-4811-b53e-c8229f88fcba=<value>`, where:

   * `https://datalens.ru/wizard/yfn1k6yxud7yr-example-chart`: Chart URL.
   * `17ecb9a1-c8a5-4811-b53e-c8229f88fcba`: Field ID.
   * `<value>`: One of the field values used for filtering.

   Following this link will open the chart filtered by the specified field.

{% cut "Chart without the parameter" %}

![image](../../../_assets/datalens/parameters/chart.svg)

{% endcut %}

{% cut "Chart with the parameter" %}

To filter the chart data, this link was generated:

`https://datalens.ru/wizard/3v7xz********-temperatura?season_xw29=spring`, where:

   * `https://datalens.ru/wizard/3v7xz********-temperatura`: Chart URL.
   * `season_xw29`: Field ID.
   * `spring`: Field value used for filtering.

![image](../../../_assets/datalens/parameters/chart-with-parameter.svg)

{% endcut %}