---
metadata:
  - name: generator
    content: Diplodoc Platform v5.63.0
alternate:
  - en/operations/chart/replace-dataset
  - ru/operations/chart/replace-dataset
  - href: en/operations/chart/replace-dataset.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
canonical: en/operations/chart/replace-dataset.html
title: How to replace a dataset in a DataLens On-premises chart
description: Follow this guide to replace a dataset in a DataLens On-premises chart.
vcsPath: en/operations/chart/replace-dataset.md
---

# Replacing a dataset in a DataLens On-premises chart

To replace a dataset in a chart:


1. In the left-hand panel, click <!-- diplodoc:svg ![image](../../_assets/console-icons/chart-column.svg) --><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><g clip-path="url(#svg-gfzl811h__a)"><path fill="currentColor" fill-rule="evenodd" d="M11.5 3.5h2a.5.5 0 0 1 .5.5v8a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1-.5-.5V4a.5.5 0 0 1 .5-.5m-2.5 9a.5.5 0 0 0 .5-.5V7a.5.5 0 0 0-.5-.5H7a.5.5 0 0 0-.5.5v5a.5.5 0 0 0 .5.5zm-4.5 0A.5.5 0 0 0 5 12v-2a.5.5 0 0 0-.5-.5h-2a.5.5 0 0 0-.5.5v2a.5.5 0 0 0 .5.5zm-1 1.5h-1a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2q.26 0 .5.063V7a2 2 0 0 1 2-2h2q.26 0 .5.063V4a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2z" clip-rule="evenodd"/></g><defs><clipPath id="svg-gfzl811h__a"><path fill="currentColor" d="M0 0h16v16H0z"/></clipPath></defs></svg> **Charts** and select the chart you need.
1. On the left side of the screen, click <!-- diplodoc:svg ![image](../../_assets/console-icons/ellipsis.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="M3 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3M9.5 8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m5 0a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0" clip-rule="evenodd"/></svg> next to the dataset and select **Replace dataset**.
1. Select another dataset.

   {% note info %}

   Make sure the new dataset contains fields with the same names as the old one. If, after you replace the dataset, the chart comes with the `ERR.DS_API.DB.COLUMN_DOES_NOT_EXIST` error, follow [this guide](../../dataset/create-dataset.md#update-fields).

   {% endnote %}

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