Skip to content

Chart options in the classic Workbook Editor

13 min read · Updated 26 Nov 2026

This page covers chart options in the classic Workbook Editor that work the same way across chart types. In a Data App, the metric switcher lets viewers change a chart’s measure instead.

  • A chart to edit. Open the workbook in the editor, select the chart and use the Data tab of its properties panel, where these options live. Expand a dimension or measure there to see its own settings. Not every chart offers every option; where one is missing, the chart type does not support it.
  • Variables, for the options that read one. Create them first; see Variables.
  • Measures in the semantic layer, for measure parameters and the dropdown recipe. Parameters and conditional measures are defined there, not in the workbook.

Rename a dimension or measure in one chart

Section titled “Rename a dimension or measure in one chart”

A custom label replaces the name that a dimension or measure shows in one chart. Other charts that use the same field keep its usual name.

  1. On the Data tab, expand the dimension or measure.
  2. Turn on Custom label.
  3. Choose where the label comes from in the source menu beside it. It starts on the default, which shows the field’s usual name. Switch it to typed text, or to a String variable so that the label changes when the variable does. To create a variable, see Variables.

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

A label that reads a variable follows whatever sets that variable, usually an action. That way a label can show, for example, a filter applied to the chart. Two common uses:

  • Name the active field of a drill-through dimension. Give the chart a String variable, such as vActiveField, as the dimension’s custom label. Then add an action that starts with the On … change event for the drill-through dimension (for example On General Dimension change) and sets the variable to the new active field. The active field has the form tableName.fieldName, so split it at the full stop and keep the second part. See Drill down for drill-through dimensions.

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

  • Show the period a measure covers. Create a measure for each year whose date filter reads parameters for the start and end of the range, so one definition covers any year; see Set a measure parameter on a chart. Label two of those measures with the String variables vCurrentYear and vPrevYear. Add an action that starts with the On … filter change within … state event for the year field and sets vCurrentYear to the highest selected year and vPrevYear to that year minus 1, formatted as ####. The column headings then follow the viewer’s selection. The action changes only the headings: for the values to follow too, tie each measure’s start and end parameters to variables on the chart (see Set a measure parameter on a chart) and set those variables in the same action.

    Table by country with measure columns headed 2022, 2021 and 2022 vs 2021, each heading taken from a year variable.

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

Let viewers switch dimensions and measures

Section titled “Let viewers switch dimensions and measures”

Alternative dimensions and measures let viewers change what a chart shows from the chart itself. You add every field a viewer may choose, and decide which ones show by default.

  1. On the Data tab, add all the dimensions and measures that viewers can choose from. Most charts take up to 100 dimensions and 100 measures; a tree takes up to 10 dimensions.

  2. Use the toggle next to each dimension and measure to choose which ones the chart shows by default. Fields that are switched off are only available as alternatives.

    Data tab of a bar chart listing dimensions Productname and Productline and measures with toggles, only Productline and Salesamount switched on.

  3. At the bottom of the Data tab, open Alternate dimensions/measures and turn on Enable alternate.

    Alternate dimensions/measures section with the Enable alternate toggle switched on.

  4. In a chart with axes, viewers switch fields from the axis titles. On the Axis tab, select Title for the dimension axis and the measure axis.

    Dimension axis settings with the Title checkbox ticked next to Ticks, Labels, Line and Show axis tooltips.

Optional settings:

  • Keep dimension fixed and Keep measure fixed, in a field’s own settings, keep that field in the chart and leave it out of the list of alternatives.

    Expanded Occupation dimension settings with the Keep dimension fixed toggle below Format type, Null values and Custom label.

  • Limit enabled measures, in Alternate dimensions/measures on charts that offer it, sets how many measures can be active at once: Allow only 1 active measure, Min/Max, Min only or Max only.

Each axis title has a dropdown arrow beside it.

Bar chart of Salesamount by Productline with the axis titles Salesamount and Productline, each with a dropdown arrow.

Selecting an axis title opens a menu of the chart’s dimensions or measures. Viewers tick the ones to show. Where a chart cannot show another field, the selection replaces one instead: a bar chart with two dimensions takes only one measure, so choosing another measure swaps it for the current one.

Bar chart with the Productline axis label menu open, listing Productname and Productline with Productline checked.

A drill-through dimension has an arrow beside its name in the menu, which opens its list of fields.

Alternatives menu with General Dimension highlighted and a submenu listing its fields, such as Sales Country, Sales Region and Occupation.

The menu does not appear when the workbook is printed.

A bookmark saves which alternatives are showing when Visualization State is included in it.

Instead of each chart’s own menu, a String variable can decide which fields several charts show.

  1. Create a String variable to hold the chosen fields, for example Selected Measures. Optionally, create a second one, such as All Measures, to receive the list of every field the chart offers. See Variables.

  2. On the chart’s Data tab, select the gear icon beside Dimensions or Measures to open Visibility conditions.

  3. Under Enabled data items, choose the first variable. Its value is a list of field names as the chart shows them, separated by commas unless you enter a Separator (optional). Select Use variable value on initial load if the variable’s value, not the chart’s saved state, should decide what shows when the workbook opens.

  4. Optional: under List of all available data items, choose the second variable.

  5. Select Save.

    Visibility conditions dialog with Selected Measures chosen for enabled data items and All Measures for the list of all items, beside a bar chart Data panel.

  6. Add an input with the Input type Dropdown and set its Variable to Selected Measures. To offer every field, set Dropdown options to Variable Value List and choose All Measures.

Repeat steps 2 to 5 on every chart that should follow the same dropdown.

Top N limits a chart to the N highest or lowest values of a dimension, ranked by a measure: the ten best-selling products, or the five weakest regions. Data Explorer has its own Top N setting; see Explore a semantic layer in Data Explorer.

  1. On the Data tab, open Limiting and turn on Show Top N dimension values. The switch is unavailable until the chart has a dimension.
  2. Enter N in the number field. It starts at 10, and an empty value goes back to 10. Switch the field to a Number variable to let viewers change N.
  3. Set the options below.
Option What it does
Dimension to use With more than one dimension, which one is ranked. See Choose the ranked dimension.
Rank each dimension individually With Dimension to use set to All, ranks every dimension on its own.
Show others Adds one record that groups every value Top N leaves out.
Others position Where that record appears. Default lets the query place it; First and Last put it at the start or the end. Not offered for a true-or-false dimension.
Others label The record’s label, Others unless you change it. For a date dimension, enter a date as YYYY-MM-DD; for a number dimension, a number. Not offered for a true-or-false dimension.
Rank measure The measure used for ranking. Without one, the chart’s first measure ranks.
Sort order Desc keeps the highest values (top N); Asc keeps the lowest (bottom N).
Sort chart by rank Orders the chart by rank instead of by its own sorting.

Top N does not apply to hierarchical or pivot tables.

Dimension to use decides which question the chart answers. Take this dot plot of revenue for each product in each country:

Dot plot of revenue per product for each country, with many overlapping dots per row and a legend of product names.

With N set to 3:

  • All, the default, ranks the last dimension within each value of the ones before it. Each country shows its own top three products, which can differ from country to country.

    Dot plot with Top N set to All: each country shows its own top three products, and the products differ by country.

  • All with Rank each dimension individually keeps the rows whose country is in the top three countries and whose product is in the top three products.

  • The outer dimension (Customer Country) is ranked across the whole chart. The chart shows all products in the top three countries.

    Dot plot limited to the top three countries by revenue, showing all products for Australia, United Kingdom and United States.

  • The inner dimension (Productname) is ranked across the whole chart. The chart shows the revenue in each country for the three best-selling products overall.

    Dot plot showing revenue in each country for only the top three products overall, with three entries in the legend.

With Show others, the values left out are grouped into one record:

Horizontal bar chart of Revenue for Australia, United Kingdom, United States and an Other Countries bar, with product dots and a product legend.

Hide zero values, also in Limiting, behaves differently when Top N is on:

  • Without Top N, it hides rows whose measures are all zero or empty.
  • With Top N, it hides only rows whose measures are all empty. Rows whose measures are zero stay in the chart and can be among the N values shown.

So a Top 10 chart can show values of zero even with Hide zero values on, for example when fewer than ten values are above zero.

A measure parameter is a named value with a default, defined in the measure. To add one, see Parameters. Each chart that uses the measure decides where the parameter’s value comes from, so the same measure can serve, for example, a currency conversion or a what-if analysis. Other kinds of parameter are covered elsewhere: per-person filter parameters in How a filter reads a parameter, and parameters in a custom SQL table in Parameters in a custom SQL query.

  1. On the Data tab, expand the measure. A measure with parameters has a Defined parameters section.

    Measure properties panel for Revenue with a Defined parameters section listing vCurrency with a Default (1) field.

  2. For each parameter, open the source menu beside its value and choose one:

    • the measure’s default, shown as Default (value)
    • a value you type
    • a workbook variable, so that changing the variable changes the result

    Defined parameters section for vCurrency with the source menu open, showing three icon options, including a variable option marked {x}.

    Defined parameters section where the vCurrency parameter is tied to a variable, also named vCurrency.

To let viewers change the variable, add an input bound to it, or a button whose action sets it. An input box or input list suits a choice among many values. A button suits a short list of choices, and its action can update other things at the same time, such as the chart’s title.

Two action blocks: clicking USD sets vCurrency to 1 and updates bar chart footer text, clicking GBP sets vCurrency to 0.79 and the title.

A rank measure under Top N has its own parameter settings. Measure parameters can also drive a period-over-period comparison; see Period over period in the classic Workbook Editor.

Switch a chart’s measure from a dropdown

Section titled “Switch a chart’s measure from a dropdown”

This recipe uses a measure parameter, two variables and an action to let viewers pick a chart’s measure from a dropdown. The example switches between Total Sales Amount and Total Quantity. To let viewers pick from many fields without an action, use Switch several charts from one variable instead.

In the semantic layer, create four measures:

  • Total Sales Amount, the sum of the sales amount.

  • Total Quantity, the sum of the order quantity.

  • measure switch, a measure that holds only a parameter, with a default value of 1.

    New Measure dialog with the Parameter type, value 1 and parameter name measureSwtich, named measure switch.

  • Chart measure, a conditional measure: if measure switch equals 1, then Total Sales Amount, else Total Quantity.

    New Conditional Measure dialog: if measure switch equals numeric 1, then Total Sales Amount, else Total Quantity, named Chart measure.

In the workbook:

  1. Create a Number variable measureSwitch with the value 1, and a String variable selected measure with the value Sales Amount.

  2. Add a chart with your dimension and the Chart measure measure. In the measure’s settings, set its parameter under Defined parameters to the measureSwitch variable, and set its Custom label to the selected measure variable so the chart names the measure it shows.

    Chart measure properties with the custom label set to the selected measure variable and measureSwitch linked as a defined parameter.

  3. From Controls in the left toolbar, add an input with the Input type Dropdown. Set its Variable to selected measure, set Dropdown options to Custom, and add the options Sales Amount and Total QTY.

    Dropdown input properties with the selected measure variable and the custom options Sales Amount and Total QTY.

  4. Place the dropdown beside the chart title and group the two.

    Bar chart titled Countries Performance by, with a dropdown set to Sales Amount beside the title.

  5. Open the actions editor and add the Variable change event for selected measure. Inside it, add an if-else block from Conditions: if selected measure is Sales Amount, set measureSwitch to 1; otherwise set it to 2.

    If selected measure value = Sales Amount, set measureSwitch to 1, else set measureSwitch to 2, in a Variable change block.

  6. Select Preview and pick each option. The chart shows Total Sales Amount or Total Quantity, and its measure label follows the option.

As built, the recipe switches between two measures, because the conditional measure and the if-else block each have two branches. measureSwitch is a workbook variable, so every chart that links Chart measure to it switches together.