Skip to content

Drill down in the classic Workbook Editor

9 min read · Updated 26 Nov 2026

This page covers drilling down in workbooks built with the classic Workbook Editor. To drill down in a Data App, see Drill-down.

A drill-through dimension is an ordered list of levels, such as Region, then Country, then Customer. A chart that uses it groups by whichever level is active, so one chart shows the same measures at every level. Drilling down moves that chart to the next level. Drilling through to another sheet is different: it needs no drill-through dimension and uses filters and the Go to block; see Drill down or drill through at the end of this page.

  1. Create the drill-through dimension in the semantic layer, with its levels in order from broadest to narrowest. See Create a drill-through.
  2. Add a chart or table to the sheet, choose the drill-through dimension as its dimension, and add measures. See Objects in the classic Workbook Editor.

The active level works like this:

  • Every drill-through dimension starts on its first level when the workbook opens.
  • The active level belongs to the dimension, not to the chart. Changing it changes every chart in the workbook that uses the dimension, so one control can switch a whole dashboard.
  • A bookmark that includes Filters also saves the active level of each drill-through dimension and restores it when applied.

Viewers can change the level without any actions:

  • On a chart, select the dimension’s title, such as the axis title, and pick a level.
  • In a table, select the drill-through icon in the column header (Change the dimension’s active field).
  • In the filter bar, select the drill-through icon and pick a level. The icon appears when the workbook has a drill-through dimension; to remove it, turn on Hide Drill-Through Icon in the filter bar settings. See Filter a classic workbook.

To change the level from your own buttons and inputs, or to react when it changes, use the action blocks below.

There are five drill-through blocks: one trigger and four actions. In each, pick the dimension in the Drill-through dropdown, which lists only drill-through dimensions. In the four action blocks you can instead plug in a text block or variable that holds its name; the On … change trigger takes only the dropdown. A block whose dimension no longer exists in the workbook stops with an error.

Block What it does
On … change Trigger. Runs the blocks inside it whenever the dimension’s active level changes, from any source. Setting the level the dimension is already on does not run it. Use it to update a label, go to another sheet, or show and hide charts.
Get active … value Returns the active level as View name.Field name, with any dot inside either name escaped with a backslash. Plug it into blocks that take a field, such as Count … filters in and Clear … filters for.
Set active … Makes a level active. Pick it from the Field dropdown, or plug in text that holds the field name on its own, without the view name. A name that matches no level changes nothing.
Next active … Moves to the next level. Use it to drill down. On the last level it has no effect.
Previous active … Moves back to the previous level. Use it to drill back up. On the first level it has no effect.

The On Drill-through change trigger block with its Drill-through dropdown.

The Get active Drill-through value block with its Drill-through dropdown.

The Set active Drill-through block with its Drill-through and Field dropdowns.

The Next active Drill-through block with its Drill-through dropdown.

The Previous active Drill-through block with its Drill-through dropdown.

To show only the field name of the active level, for example in a label or a chart title, use split … by …, get index … on the value from Get active … value with . as the separator and index 2. This works only when neither the view name nor the field name contains a dot.

For every other block and how to build actions, see Astrato Action Blocks.

Each example starts from a chart on a drill-through dimension, set up as in Use a drill-through dimension in a chart. Preview the workbook to test the actions.

Switch every chart’s level from a dropdown

Section titled “Switch every chart’s level from a dropdown”

Viewers pick a level from a dropdown. Every chart that uses the dimension switches to that level, and the dimension labels follow it.

  1. Create a String variable to hold the name of the active level.

  2. Add a Dropdown input from the Controls section of the left menu.

    Controls panel with the Dropdown input underlined in the grid of objects.

  3. Set the dropdown to update the variable, and list the levels as its options, spelled exactly as the level field names.

    Dropdown input data settings with the variable vActiveGeneral and the options Country, Region and State.

  4. On every chart that uses the dimension, turn on Custom label for the dimension and set it to the variable.

    Chart dimension settings for General Dimension with Custom label turned on and set to the variable vActiveGeneral.

  5. In the workbook’s actions, when the sheet is entered, set the variable to the active level’s field name, split from Get active … value as described above.

    Action blocks: on entering the Home sheet, set vActiveGeneral to split Get active General Dimension value by “.”, get index 2.

  6. When the variable changes, use Set active … to set the dimension to the variable, and update the chart titles.

    Action blocks on a vActiveGeneral change that set the active General Dimension and update a chart title.

  7. Add an On … change trigger for the dimension, and inside it set the variable to the active level as in step 5. Without it, a level picked from a chart’s own menu leaves the dropdown, labels and titles on the old level. Steps 6 and 7 do not loop, because setting the level the dimension is already on does not run On … change.

A viewer selects values on the chart, steps down to a level they choose with that selection applied, and can step back.

  1. Create three String variables: the active level, the previous level, and the path travelled so far. The path holds the field names of the levels visited, separated by a backslash, for example Region\Country\City. Each field name is the second part of the active level’s value, split at the full stop.

  2. Add a Dropdown input that lists the levels and updates the active-level variable, and two buttons: forward and back.

  3. Build these actions:

    • When the sheet is entered, hide the dropdown and the forward button, and set the path variable from the active level.

      Enter action that hides the dropdown and forward button and sets vDrillThroughPath from the active drill_through value.

    • On any Pending filter change, count the pending filters on the active level. If there are any, show the dropdown and the forward button.

      On any Pending filter change: show the forward button and dropdown when pending filters in drill_through exceed 0.

    • When the forward button is selected, store the active level’s field name as the previous level, set the active level to the one chosen in the dropdown, then set the path to itself followed by a backslash and the new level’s field name (two concatenate blocks). Apply the pending filters, show the path in the chart subtitle, and hide the dropdown and button.

      Forward button actions that set vPreviousField, set the active drill_through, update vDrillThroughPath, apply pending filters, set the subtitle and hide the controls.

    • When the back button is selected, clear the filters on the active level, then remove it from the path by replacing a backslash followed by its field name with nothing (replace). Set the active level to the previous one. For the new previous level, split the path at the backslash and take the item whose index is the number of backslashes left in the path (count), which is the level before the one now active. Clear the filters on the new active level and update the subtitle.

      Back button actions that clear filters, reset vDrillThroughPath and vPreviousField, and update the chart subtitle.

Drill down automatically past a selection threshold

Section titled “Drill down automatically past a selection threshold”

The chart moves to the next level as soon as a viewer narrows the current level to a set number of values or fewer. A button drills back up.

  1. Create a String variable for the dimension label and a Number variable for the threshold.

  2. Turn on Custom label for the chart’s dimension and set it to the String variable.

    Dimension settings for Product Category with Custom label turned on and set to vActiveProduct.

  3. Add a numeric input that updates the threshold variable, and a button to drill up. Group the chart, input and button so they move and resize together; see Group items.

    Bar chart with a drill-down threshold input and button, and a right-click menu with Group highlighted.

  4. Build these actions:

    • When the sheet is entered, set the label variable to the active level’s field name.

      Enter action that sets vActiveProduct to the split of the active Product_dim value by “.”, index 2.

    • On any Applied filter change, count the applied filters on the active level. If the count is above zero and no more than the threshold, use Next active … and add the new level’s name to the label. On the last level Next active … has no effect, so check that the level changed before you add the name, or it repeats.

      On any Applied filter change: if the applied filter count is at most vDrillThreshold and above 0, go to the next active Product_dim and append its value to vActiveProduct.

    • When the drill-up button is selected, clear the filters on the active level, remove its name from the label, use Previous active …, and clear the filters on the new level. Put these blocks inside a check that the active level is not the first one; otherwise, on the first level the label loses its only name.

      Drill-up actions: on click, clear Product_dim filters, remove the last part of vActiveProduct, go to the previous active Product_dim and clear filters.

Drilling down keeps the same chart and changes the level of a drill-through dimension, as on this page. Drilling through leaves the chart for another sheet or page, filtered by what was selected. See drill down and drill-through in the glossary.

A drill-through dimension stores only its levels and their order; it has no target of its own. In a classic workbook you build what happens on a drill in the actions: the drill-through blocks change the level, Go to moves to another sheet, Open link opens a URL in a new tab, and the filter blocks apply or clear the selection that travels with it.