Drill-Down and Drill-Through Dimension Actions
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.
Use a drill-through dimension in a chart
Section titled “Use a drill-through dimension in a chart”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.
Drill-through actions
Section titled “Drill-through actions”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.
-

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

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

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

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

Previous active … moves back to the previous level. On the first level it has no effect. Use it to drill back up.
Examples of drill-through actions
Section titled “Examples of drill-through actions”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.
-
Create a variable to hold the name of the active level.
-
Add a dropdown input from the Controls section of the workbook’s left menu.

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

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

-
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.
-
When the variable changes, set the dimension’s active level to the variable and update the chart titles.

-
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.
-
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.
-
Build a chart on the drill-through dimension.
-
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.
-
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.

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

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.

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.

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.
-
Create a text variable for the chart’s dimension label, and a numeric variable for the threshold.
-
Build a chart on the drill-through dimension, and set its dimension label to the text variable.

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

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

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.

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.

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.