Yandex Cloud
Search
Contact UsGet started
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • AI Studio
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
© 2025 Direct Cursus Technology L.L.C.
Yandex DataLens
    • Overview
    • Formula syntax
    • Parameters
  • Audit Trails events

In this article:

  • Using parameters
  • Examples
  • Limitations
  • Use cases
  1. Calculated fields
  2. Parameters

Parameters in Yandex DataLens

Written by
Yandex Cloud
Updated at June 23, 2025
  • Using parameters
  • Examples
  • Limitations
  • Use cases

A parameter is a variable that can substitute constant values in calculated fields. You can create parameters both at the dataset level and at the chart level.

Dataset parameters are available in all charts created based on this dataset, while chart parameters are only available in the chart they are created in. The default value for a dataset parameter can be overridden at the chart level.

Using parametersUsing parameters

With dataset or chart parameters, you can manage formulas and change visualization in a chart.
The saved dataset parameters are propagated to all charts based on this dataset when they are uploaded.

You can edit parameter values on dashboards using selectors with manual input. However, you cannot do the following:

  • Use the Multiple choice option.
  • Choose an operation in a selector (leave a dash in the selection field of the Operation drop-down list).
  • When using a selector based on a dataset parameter, you must unlink the selector from the other selectors on the dashboard tab (set Not linked for link type).

You can also specify parameter values in chart links. To do this, add ? at the end of a URL, write the parameter name without spaces after the URL, put =, and specify the parameter value without spaces. You can list multiple parameters in a URL using & as a separator.

To use a chart with a parameter:

  1. Add a parameter to a dataset or chart.

  2. Place your chart on a dashboard.

  3. Add a selector to the dashboard to manage the chart parameter:

    • Select Manual input.
    • In the Field or parameter field, enter the name of the parameter from the chart.
    • Leave a dash in the selection field of the Operation drop-down list.
    • In the Default value field, specify the value to propagate in the chart parameter.
    • Enter the selector Header to display on the dashboard.

    By changing selector values, you can customize visualization in the chart through the parameter.

ExamplesExamples

Let's look at some examples of how to use parameters to manage visualization in a chart. We will build a dataset from a connection to the demo DB (the samples.MS_SalesFullTable table) and use it as our data source.

Example 1

Set up visualization of a sales chart on a dashboard by changing the detail level with a selector:

  1. Add to the dataset a parameter named scale with String for type and year for default value. The parameter will be available in all charts created based on this dataset.

  2. Create a Column chart based on the created dataset:

    • Add to the chart a field named period with the DATETRUNC([OrderDatetime], [scale]) formula and drag it to the X section.
    • Drag the Sales dimension to the Y section. The Sales dimension will be automatically converted to the SUM[Sales] measure.
    Sales by period

    image

  3. Place your chart on a dashboard.

  4. Add a selector to manage the chart parameter:

    • Select Manual input.
    • Specify scale in the Field or parameter field.
    • Leave List in the selection field of the Selector type drop-down list.
    • Leave a dash in the selection field of the Operation drop-down list.
    • In the Possible values window, add: year, month, week.
    • In the Default value field, specify year to round dates to a year in the chart by default.
    • In the Header field, enter the selector name to display on the dashboard.
    Period selector

    image

  5. Make sure a link between the selector and the chart on the dashboard is set up properly:

    1. In dashboard edit mode, click Links.

    2. Select the added selector from the list. Check that it has an outgoing link to the appropriate chart by the scale field.

    3. Add a link between widgets if needed.

      Links between widgets

      image

    Now, by choosing selector values, you can change the way dates are rounded in the chart, e.g., by year or by month.

    Sales by month

    image

Example 2

Enable selecting a dimension with a selector to display it in your chart on a dashboard:

  1. Create a Column chart:

    • Add to the chart a parameter named dimension_control with String for type and by shop for default value. The parameter will only be available in this chart.
    • Add to the chart a field named shop_product_cat with the CASE([dimension_control], "by shop", [ShopName], "by product category",[ProductCategory], "by product subcategory", [ProductSubcategory], '') formula and drag it to the X section.
    • Drag the Sales dimension to the Y section. The Sales dimension will be automatically converted to the SUM[Sales] measure.
    Sales with choice of dimension four grouping

    image

  2. Place your chart on a dashboard.

  3. Add a selector to manage the chart parameter:

    • Select Manual input.
    • Specify dimension_control in the Field or parameter field.
    • Leave List in the selection field of the Selector type drop-down list.
    • Leave a dash in the selection field of the Operation drop-down list.
    • In the Possible values window, add: by shop, by product category, and by product subcategory.
    • In the Default value field, specify by shop to display sales amounts by shop by default.
    • In the Header field, enter the selector name to display on the dashboard.

    Now, by choosing selector values, you can change the dimension displayed on the chart.

    Sales by category

    image

Example 3

Use a selector to enable selecting a dimension to color in your chart:

  1. Create a Pie chart:

    • Add to the chart a parameter named colors with String for type and categories for default value. The parameter will only be available in this chart.
    • Add to the chart a field named dimension_colors with the IF([colors]="categories", [ProductCategory], [ProductSubcategory]) formula and drag it to the Color section.
    • Drag the Sales dimension to the Measures section. The Sales dimension will be automatically converted to the SUM[Sales] measure.
    Sales by group

    image

  2. Place your chart on a dashboard.

  3. Add a selector to manage the chart parameter:

    • Select Manual input.
    • Specify colors in the Field or parameter field.
    • Leave List in the selection field of the Selector type drop-down list.
    • Leave a dash in the selection field of the Operation drop-down list.
    • In the Possible values window, add categories and subcategories.
    • In the Default value field, specify categories to color sales amounts by product category by default.
    • In the Header field, enter the selector name to display on the dashboard.

    Now, by choosing selector values, you can change the dimension to color in your chart.

    Sales with choice of group

    image

LimitationsLimitations

When using parameters, keep in mind the following parameter naming restrictions:

  • Valid characters include Latin letters (both uppercase and lowercase), digits, hyphen (-), and underscore (_).
  • The name must not be longer than 36 characters.
  • It must not start with an underscore, e.g., _name.
  • You cannot use these reserved parameter names: tab, state, mode, focus, grid, tz, from, to.
  • Parameter names are case-sensitive, which means Test and test are two different parameters.
  • Parameter names cannot be the same as dataset field names.
  • After adding a parameter to a dataset, make sure to save charts in the wizard again.
  • If a dataset and a chart have parameters with the same name, the parameter from the chart is ignored.

Use casesUse cases

  • Using parameters

Was the article helpful?

Previous
Functions for time series
Next
Overview
© 2025 Direct Cursus Technology L.L.C.