Adding a parameter to a chart in DataLens On-premises

Note

  • Parameters added at the chart level are only available in this chart.
  • If a dataset has a parameter with the same name, the chart parameter is ignored.

To add a parameter to a chart:

  1. In the left-hand panel, click Charts and select the chart to add a parameter to.

  2. On the left side of the screen above the list of dataset fields, click and select Parameter.

  3. In the Add parameter window, specify:

    • Name: Sets the parameter name.
    • Type: Defines the parameter data type: Date, Date and time, Fractional number, Boolean, String, or Integer.
    • Default value: This is a required value. It is used when no parameter value is set on the dashboard, chart URL, or chart settings.
  4. Click Add.

Changing the default value

You can change the default value of a dataset parameter at the chart level:

  1. Click the icon to the left of the parameter name.
  2. In the Edit parameter window, set a new parameter value.
  3. Click Save.

Resetting the default value

To reset the default parameter value from the dataset:

  1. Click the icon to the left of the parameter name.
  2. In the Edit parameter window, click Initial value. The default parameter value will be reset to its original value from the dataset.
  3. Click Save.

You can also create parameters at the dataset level.