Skip to content

Dimensions and Measures Custom Labels

3 min read · Updated 13 Nov 2026

A custom label replaces the name a dimension or measure shows in one visualization. It can be fixed text, or a string variable whose value actions change as users interact with the workbook.

Common uses for custom labels:

  • The dimension label shows the active field of a drill-through dimension.
  • The dimension label shows a filter applied to the chart.
  • The measure label shows the period it covers. For example, instead of “Current year to date”, the label shows the selected year, and it changes when the user selects another year.

Turn on Custom label in the properties of the dimension or measure in the visualization.

OrderMonthYear dimension properties panel with the Custom label toggle switched off beneath the Null values checkbox.

A static custom label replaces the field name, or the label defined for it, in this visualization only.

In the example below, the custom label Month replaces the field name OrderMonthYear.

OrderMonthYear dimension properties with Custom label switched on and the static label “Month” entered in the text field.

A dynamic custom label uses a string variable. Actions can set the variable’s value when an event happens, and the label follows. To create the variable, see Creating variables to use with objects.

Properties of a revenue measure with Custom label on and the string variable vCurrentYear selected as a dynamic label.

Dimension label of a drill-through dimension

Section titled “Dimension label of a drill-through dimension”

A drill-through dimension holds a list of fields. The user picks one, and every visualization that uses the drill-through dimension changes to that field. A custom label lets those visualizations name the field they now show.

  1. Create a drill-through dimension (General Dimension in this example). See Use a drill-through dimension in a chart.

  2. Create a string variable, here named vActiveField.

  3. Create a chart that uses the drill-through dimension, and select the variable as its custom label.

    General Dimension properties with Custom label on, using the string variable vActiveField as the dynamic label.

  4. Create an action that starts with the On … change event for the drill-through dimension (here On General Dimension change), and sets vActiveField to the new active field.

    Action block: on General Dimension change, set vActiveField to a split of the active General Dimension value by “.”, index 2.

    The active field has the form tableName.fieldName, so the action splits it at the full stop and assigns only the fieldName part to the variable. To learn how actions work, see Astrato Action Blocks.

The video at the top of this page shows this example.

In the table below, the measure labels show the years they cover. When the user selects a different year, the labels update to show the latest selected year and the year before it.

Table by General Dimension (countries) with columns 2022, 2021, 2022 vs 2021, 2022 - %GP and 2021- %GP, with bars and a totals row.

  1. Create a measure for each year. Parameters let one measure definition cover different date ranges; see Measure Parameters.

    Update Measure dialog: Sum of Sales Change Update Sales, filtered by Order Date New between parameters vStart and vEnd.

  2. Create two string variables to hold the year values, for example vCurrentYear and vPrevYear.

  3. Select the variables as the custom labels of the measures.

    Properties of a revenue measure with Custom label on and the variable vCurrentYear selected as its label.

  4. Create an action that starts with the On … filter change within … state event for the year field (here orderYear). In it, set vCurrentYear to the maximum orderYear, and vPrevYear to that maximum minus 1, both formatted as ####.

    Action block: on orderYear filter change, set vCurrentYear to the max orderYear and vPrevYear to that max minus 1, formatted as ####.

The video at the top of this page shows this example. For more ways to make a dashboard respond to the user, see Astrato Action Blocks.