Chart options in the classic Workbook Editor
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.
Before you start
Section titled “Before you start”- 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.
- On the Data tab, expand the dimension or measure.
- Turn on Custom label.
- 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.

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 formtableName.fieldName, so split it at the full stop and keep the second part. See Drill down for drill-through dimensions.
-
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
vCurrentYearandvPrevYear. Add an action that starts with the On … filter change within … state event for the year field and setsvCurrentYearto the highest selected year andvPrevYearto 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.

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.
Set up alternatives
Section titled “Set up alternatives”-
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.
-
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.

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

-
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.

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.

-
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.
What viewers see
Section titled “What viewers see”Each axis title has a dropdown arrow beside it.

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.

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

The menu does not appear when the workbook is printed.
A bookmark saves which alternatives are showing when Visualization State is included in it.
Switch several charts from one variable
Section titled “Switch several charts from one variable”Instead of each chart’s own menu, a String variable can decide which fields several charts show.
-
Create a String variable to hold the chosen fields, for example
Selected Measures. Optionally, create a second one, such asAll Measures, to receive the list of every field the chart offers. See Variables. -
On the chart’s Data tab, select the gear icon beside Dimensions or Measures to open Visibility conditions.
-
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.
-
Optional: under List of all available data items, choose the second variable.
-
Select Save.

-
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 chooseAll Measures.
Repeat steps 2 to 5 on every chart that should follow the same dropdown.
Show only the top or bottom N
Section titled “Show only the top or bottom N”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.
- On the Data tab, open Limiting and turn on Show Top N dimension values. The switch is unavailable until the chart has a dimension.
- 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.
- 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.
Choose the ranked dimension
Section titled “Choose the ranked dimension”Dimension to use decides which question the chart answers. Take this dot plot of revenue for each product in each country:

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.

-
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.

-
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.

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

Top N and Hide zero values
Section titled “Top N and Hide zero values”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.
Set a measure parameter on a chart
Section titled “Set a measure parameter on a chart”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.
-
On the Data tab, expand the measure. A measure with parameters has a Defined parameters section.

-
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


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.

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.

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

In the workbook:
-
Create a Number variable
measureSwitchwith the value 1, and a String variableselected measurewith the valueSales Amount. -
Add a chart with your dimension and the Chart measure measure. In the measure’s settings, set its parameter under Defined parameters to the
measureSwitchvariable, and set its Custom label to theselected measurevariable so the chart names the measure it shows.
-
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 optionsSales AmountandTotal QTY.
-
Place the dropdown beside the chart title and group the two.

-
Open the actions editor and add the Variable change event for
selected measure. Inside it, add an if-else block from Conditions: ifselected measureisSales Amount, setmeasureSwitchto 1; otherwise set it to 2.
-
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.