Skip to content

Drill-Down and Drill-Through Dimension Actions

9 min read · Updated 13 Nov 2026

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 can show the same measures at every level instead of needing one chart per level. The drill-through action blocks read and change that active level.

  • Drill down keeps the same chart and moves it to the next level of the dimension: Year, then Quarter, then Month.
  • Drill-through leaves the chart for another view or sheet, filtered by what was selected.

Drill down changes the active level of a drill-through dimension. Drill-through in a workbook needs no such dimension: it uses filters and Go to. See drill down and Drill-through in the glossary.

The drill-through action blocks on this page change the active level, which is drill down. To drill through to another sheet, see the FAQ at the end of this page.

Create the dimension in the semantic layer first, with its levels in order from broadest to narrowest: see Create a drill-through. Then add a chart or table to the sheet, choose the drill-through dimension as its dimension, and add measures.

How the active level behaves:

  • 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 that dimension, which is what lets one control switch a whole dashboard.
  • A bookmark that saves selections 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 from the menu. In a table, select the drill-through icon in the column header.

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

There are five drill-through blocks: one trigger and four actions. Each one names a drill-through dimension in its Drill-through dropdown, which lists only drill-through dimensions. A block that names a dimension the workbook no longer has stops with an error.

  • Action trigger block reading “On Drill-through change” with a Drill-through dropdown.

    On … change runs the blocks inside it whenever the active level of the chosen dimension changes. Use it to update a label with the level name, go to another sheet, or show and hide charts.

  • Action block reading “Get active Drill-through value” with a Drill-through dropdown.

    Get active … value returns the active level as View name.Field name. A dot inside either name is escaped with a backslash. If neither the view name nor the field name contains a dot, split the value at the dot and keep the second part to show only the field name, as in the dashboard example below.

  • Action block reading “Set active Drill-through” with Drill-through and Field dropdowns.

    Set active … makes the chosen level active. Pick the level from the Field dropdown, or plug in a variable or another text block to set it dynamically. The text must be the field name on its own, without the view name. A name that matches no level of the dimension changes nothing.

  • Action block reading “Next active Drill-through” with a Drill-through dropdown.

    Next active … moves to the next level. On the last level it has no effect. Use it to drill down.

  • Action block reading “Previous active Drill-through” with a Drill-through dropdown.

    Previous active … moves back to the previous level. On the first level it has no effect. Use it to drill back up.

Each example starts from a chart on a drill-through dimension, set up as described 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 drill-through dimension switches to that level, and the chart titles follow it.

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

  2. Add a dropdown input from the Controls section of the workbook’s left menu.

    Workbook Controls panel with the dropdown input control underlined in red in the grid of interactive objects.

  3. Set the dropdown to update the variable, and list the levels it offers.

    Atomic input Data settings: Dropdown input variable vActiveGeneral, custom label, and custom dropdown options such as Country, Region and State.

  4. Add the drill-through dimension to every chart on the dashboard. On each, turn on the custom label and set it to the variable.

    Chart dimension settings for General Dimension with Custom label turned on and the variable vActiveGeneral underlined in red.

  5. Open the workbook’s actions. When the sheet is entered, set the variable to the dimension’s active level. Get active … value returns View name.Field name, so split it at the dot and keep the second part. This works only when neither the view name nor the field name contains a dot.

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

  6. When the variable changes, set the dimension’s active level to the variable and update the chart titles.

    Action blocks triggered by a vActiveGeneral variable change that set the active General Dimension and update the Dashboard_trend chart title.

  7. Add an On … change block for the dimension, and inside it set the variable to the active level, split at the dot as in step 5. Without it, a level picked from a chart’s own menu leaves the variable, the custom labels and the chart titles on the old level. Setting the level the dimension is already on does not run On … change, so steps 6 and 7 do not loop.

Drill down on a chart with forward and back buttons

Section titled “Drill down on a chart with forward and back buttons”

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

  1. Create three variables: one for the active level, one for the previous level so a viewer can step back, and one for the path travelled so far.

  2. Build a chart on the drill-through dimension.

  3. Add a dropdown input and two buttons, one to step forward and one to step back. List the levels in the dropdown and set it to update the active-level variable.

  4. Build these action blocks.

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

    Enter action block for the Drill through chart that hides the chart and forward button and sets vDrillThroughPath from the active drill_through value.

    When pending filters change, count the pending filters on the active level. If there are any, show the dropdown and the forward button.

    Action block on any Pending filter change that shows the forward button and Drill through chart when pending filters in drill_through exceed 0.

    When the forward button is selected: store the active level as the previous level, set the active level to the one chosen in the dropdown, add it to the path, apply the pending filters, show the path in the chart subtitle, and hide the dropdown and the button again.

    Action block for the forward button click that sets vPreviousField, sets the active drill_through, updates vDrillThroughPath, applies pending filters, sets the subtitle and hides the chart and button.

    When the back button is selected: clear the filters on the active level, remove it from the path, set the active level to the previous one, store the level before that as the new previous level, clear the filters on the new active level, and update the subtitle.

    Action block for the drill back button click that clears filters, resets vDrillThroughPath and vPreviousField, and updates 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 has narrowed the current level to a set number of values or fewer. A button drills back up.

  1. Create a text variable for the chart’s dimension label, and a numeric variable for the threshold.

  2. Build a chart on the drill-through dimension, and set its dimension label to the text variable.

    Dimension settings for Product Category with Custom label switched on and set to the variable vActiveProduct.

  3. Add a numeric input for the threshold, set to update the threshold variable, and a button to drill up. Group the chart, the input and the button so they resize together.

    Product catalog effectiveness bar chart with a drilldown threshold input and button, and a right-click menu with Group highlighted.

  4. Build these action blocks.

    When the sheet is entered, set the label variable from the active level, split at the dot as in the first example.

    Enter Drilldown action block that sets vActiveProduct to the split of the active Product_dim value by a period, index 2.

    When applied filters change, count the applied filters on the active level. If the count is above zero and no more than the threshold, move to the next level and add its name to the label. On the last level Next active … has no effect, so check that the active level changed before you add the name, or it repeats.

    Action blocks on any Applied filter change: if 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, move to the previous level, and clear the filters on that level. On the first level Previous active … has no effect, so put these blocks inside a check that Get active … value is not the first level, or the label loses the first level’s name.

    Drill-up action blocks: when drillup emits On click, clear Product_dim filters, remove the last part from vActiveProduct, go to the previous active Product_dim and clear filters.

Can I set what a drill does on the dimension itself?

No. A drill-through dimension stores only its levels and their order; it has no target or parameters of its own. What happens when a viewer drills is built in the workbook’s actions: the drill-through blocks above 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.

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