---
metadata:
  - name: generator
    content: Diplodoc Platform v5.63.0
alternate:
  - en/operations/dashboard/create-alias
  - ru/operations/dashboard/create-alias
  - href: en/operations/dashboard/create-alias.md
    type: text/markdown
    title: Markdown version
csp:
  - script-src:
      - https://mc.yandex.ru
    img-src:
      - https://mc.yandex.ru
    connect-src:
      - https://mc.yandex.ru
      - wss://mc.yandex.ru
    child-src:
      - 'blob:'
      - https://mc.yandex.ru
    frame-src:
      - 'blob:'
      - https://mc.yandex.ru
    frame-ancestors:
      - 'blob:'
      - https://mc.yandex.ru
title: How to add an alias in DataLens On-premises
description: Follow this guide to add an alias for widgets in DataLens On-premises.
canonical: en/operations/dashboard/create-alias.html
vcsPath: en/operations/dashboard/create-alias.md
---

# Creating an alias in DataLens On-premises


To add an [alias](../../dashboard/link.md#alias) for a pair of widgets:


1. In the left-hand panel, click <!-- diplodoc:svg ![image](../../_assets/console-icons/layout-cells-large.svg) --><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M12 3.5H8.75v3.75h4.75V5A1.5 1.5 0 0 0 12 3.5m1.5 5.25H8.75v3.75H12a1.5 1.5 0 0 0 1.5-1.5zm-6.25-1.5V3.5H4A1.5 1.5 0 0 0 2.5 5v2.25zM2.5 8.75h4.75v3.75H4A1.5 1.5 0 0 1 2.5 11zM4 2a3 3 0 0 0-3 3v6a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V5a3 3 0 0 0-3-3z" clip-rule="evenodd"/></svg> **Dashboards** and select the dashboard you need. If you do not have a dashboard, [create one](create.md).
1. At the top of the page, click **Edit**.
1. To the right of the widget to add a link for, click <!-- diplodoc:svg ![image](../../_assets/datalens/links.svg) --><svg xmlns="http://www.w3.org/2000/svg" width="16" height="17" fill="currentColor" aria-hidden="true" class="yc-icon"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 17"><path fill="currentColor" fill-rule="evenodd" d="M5.916 7.527a2.668 2.668 0 1 0 0 1.333h1.417v2.667a2 2 0 0 0 2 2h.75a2.668 2.668 0 0 0 5.25-.667 2.667 2.667 0 0 0-5.249-.667h-.75a.667.667 0 0 1-.667-.666V4.86c0-.368.298-.667.666-.667h.751a2.668 2.668 0 1 0 0-1.333h-.75a2 2 0 0 0-2 2v2.667H5.915Zm-1.25.66a1.333 1.333 0 1 0 0 .012v-.012ZM14 3.527a1.333 1.333 0 1 1-2.667 0 1.333 1.333 0 0 1 2.667 0Zm-1.333 10.666a1.333 1.333 0 1 0 0-2.666 1.333 1.333 0 0 0 0 2.667Z" clip-rule="evenodd"/></svg></svg>.

   1. Select a link type in the list for the widget you are going to link.


   1. In the window that opens, for both widgets, select from the list the fields for which you are creating the alias. The fields must be of the same type.


   1. Click <!-- diplodoc:svg ![image](../../_assets/datalens/check.svg) --><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="#000" fill-rule="evenodd" d="M13.805 4.195c.26.26.26.683 0 .943l-7.33 7.33a.673.673 0 0 1-.95 0l-3.33-3.33a.667.667 0 1 1 .943-.943L6 11.057l6.862-6.862c.26-.26.682-.26.943 0Z" clip-rule="evenodd"/></svg>.
   1. Click **Apply**.

      {% note warning %}

      Please note that you cannot create aliases for fields from the same dataset or fields with the same IDs from different datasets.

      {% endnote %}

   1. At the bottom of the **Links** window, click **Apply**.

1. In the top-right corner of the dashboard, click **Save**.

{% cut "Example of creating a link" %}

A chart named **tutorial — Line chart** is based on the **tutorial** dataset and a chart named **tutorial 2 — Table** is based on the **tutorial 2** dataset.

![image](../../_assets/datalens/concepts/charts-1.png)

1. Let's add a **tutorial — Date** selector of the **Based on dataset** type to the dashboard. In the selector parameters, select the `tutorial` dataset and the `Date` field. A link between the selector and the **tutorial — Line chart** will be created automatically, since they are based on the same dataset.


1. Let's add a **tutorial 2 — Manual input** selector of the **Manual input** type to the dashboard. In the selector parameters, select the **Calendar** element type and the `Date` field.


1. Let's create a link between the **tutorial 2 — Manual input** selector and the **tutorial 2 — Table** chart using an alias. When creating an alias, select the `Date` field in the selector and the `Date 2` field in the `tutorial 2` dataset.


   As a result, the **tutorial — Date** selector will filter the **tutorial — Line chart**, and the **tutorial 2 — Manual input** selector will filter the **tutorial 2 — Table** chart.

   ![image](../../_assets/datalens/concepts/charts-2.png)

1. Let's create a link between the **tutorial 2 — Manual input** selector and the **tutorial 2 — Line chart** using an alias. When creating an alias, select the `Date` field in the selector and the `Date` field in the `tutorial` dataset.


Creating a link between the **tutorial 2 — Manual input** selector and the **tutorial — Line chart** links the **tutorial 2 — Manual input** and **tutorial — Date** selectors. This happens because the **tutorial — Line chart** and the **tutorial — Date** selector are based on the same dataset. As a result, any selector causes the appropriate values to be set automatically in the other selector and both charts' filters. To unlink the selectors, set their link type to **Not linked**.

{% endcut %}

When adding an alias, make sure the field the selector uses for filtering is included in the dataset used to build the chart. Otherwise, the link will not work.