Tableau Drill Down

What is Tableau drill down?

Tableau drill down refers to the capability of exploring the data granularity by deep diving into more details of a certain data point progressively. It allows an understanding of the specific details of visualization by navigating from a high-level summary to the specific granular data points to analyze the different data insights at each level. For example, you may have created a visualization displaying the cost breakup of different units in an organization and you want to understand which unit is contributing to the most of the cost and the underlying reason for that. You can drill down the visualization to pinpoint the specific unit and then the individual components in that unit contributing to high cost. Tableau doesn’t have any built-in feature to apply drill down, however, you can perform so using different workarounds.

A sample Tableau drill down looks like the one provided below where you can see the drill-down of Sales by Category – Sub-Category – Segment, etc.

Tableau Drill Down - Sample
Key Takeaways
  • Tableau drill down allows you to explore the data granularity by deep diving into more details of a certain data point progressively.
  • It allows you to navigate from a high-level summary to the specific granular data points to analyze the different data insights at each level.
  • Tableau allows you to apply drill-down either by creating a Tableau drill-down hierarchy or setting up Actions.
  • You can apply Tableau drill downs to different visualizations such as maps, Pivot Tables, Bar charts, and Pie charts.
  • You can drill down across multiple levels and combine them with other Tableau features.
  • You can drill down both numerical and categorical fields in Tableau.

How to drill down in Tableau?

You can perform drill down in Tableau using the hierarchies or actions.

To drill down in Tableau using actions, follow the instructions outlined below:

Step 1: Import your data source into Tableau public.

Step 2: Create a visualization in a Tableau worksheet. You can create a map, pivot table, bar chart, or any other visualization in the worksheet using the imported dataset. For example, you can create a Pie chart with a breakdown of an investment portfolio of a user across different asset classes i.e. Fixed Income, Equities, Commodities, Real Estate, etc.

Step 3: Create another visualization in a new worksheet. This visualization shall include the drill-down data details of the previous visualization. For example, in this visualization, you can further break down each asset class where you can show the split across the Fixed Income i.e. bonds, deposits, treasury bills, etc. A similar breakdown can be extended to equities or commodities such as gold, silver, or other products.

Step 4: Define Actions in the 1st Tableau worksheet to Tableau drill down to another worksheet. You can do so by navigating to Worksheet – Actions. On the Action screen, click on Add Action -> Filter. Specify the details, such as source worksheet, target worksheet, run actions, etc, on the Action Filter screen.

Step 5: Select any of the portions in your first visualization in the Tableau worksheet to drill down to another worksheet. You will notice that Tableau will navigate you to the second visualization with the values filtered as per the specification provided on the Actions page.

You can similarly create hierarchies and apply drill-down, as well as create Tableau drill down reports for your end users.

In the next section, we will look at different examples using which you can apply drill down in Tableau.

Examples

In this section, we have provided different variants or use cases for applying drill-down features in Tableau.

Example #1 – Map Drill-Down

In this example, we created a State Map visualization in Tableau and then applied drill-down logic to display specific details of the measure for the selected state. We demonstrated this example using a Superstore Dataset that contains the sales details across different stores located in different states in the US.

To apply Map drill-down in Tableau, follow the steps outlined below:

Step 1: Import your dataset into the Tableau interface.

Example 1 - Step 1

Step 2: In a new worksheet, drag State to the Rows shelf and Profit to the Columns shelf. Tableau will create a bar chart as shown below.

Example 1 - Step 2

Step 3: Click on the Show Me toolbar and select Maps Visual.

Tableau Drill Down - Example 1 - Step 3

Tableau will automatically create a Map visual with color-coding in the Tableau view, as shown below.

Tableau Drill Down - Example 1 - Step 3 - Map Visual

Step 4: In a new worksheet, drag State and City to the Rows shelf and Profit to the Columns shelf. Drag Profit to the Color to create a bar visual, as shown below.

Tableau Drill Down - Example 1 - Step 4

Step 5: In the 1st worksheet, i.e., State Map, navigate to the Worksheet – Actions.

Tableau Drill Down - Example 1 - Step 5

Step 6: Go to the Actions screen. Click on Add Action – Filter.

Tableau Drill Down - Example 1 - Step 6

Step 7: In the Filter Action screen, specify the filter name and provide the source and target sheets. Define the run action and click on OK.

Tableau Drill Down - Example 1 - Step 7

Step 8: Tableau will create the Action visible in the Actions screen. Click on OK.

Tableau Drill Down - Example 1 - Step 8

Step 9: On the State Map sheet, click on any of the states in the view. Here, we have selected Colorado.

Tableau Drill Down - Example 1 - Step 9

Tableau will navigate you to the bar chart drill-down sheet displaying the profit breakup across the different cities in Colorado providing a view of which city contributed to maximum negative profits.

Tableau Drill Down - Example 1 - Step 9 - Bar chart

Example #2 – Drill-down Pivot Table

In this example, we have demonstrated how you can apply drill down to a pivot table in Tableau using the Dataset Salary 2024 in Tableau. The Dataset Salary 2024 contains details of the industry salary across different levels of data science resources.

To drill down the pivot table, refer to the steps below:

Step 1: Connect to the Dataset Salary 2024 into Tableau public.

Example 2 - Step 1

Step 2: Create a parameter in a new worksheet. This is in the Tableau. 

Example 2 - Step 2

Step 3: In the Parameter screen, provide the name and specify the properties. Click on OK.

Tableau Drill Down - Example 2 - Step 3

Step 4: Create an Input Parameter by following the step above by specifying the choices below.

Example 2 - Step 4

Step 5: Create calculated fields by choosing the option from the context menu.

Example 2 - Step 5

Here we have created multiple calculated fields by specifying the logic in the calculated field editor as shown below:

Dimension Level – This field was created to provide users with options for Tableau drill down levels.

Tableau Drill Down - Example 2 - Step 5 - Dimension Level

Input Field – This field determines the input parameter and is accordingly used in the Tableau drill down dashboard to define the actions.

Tableau Drill Down - Example 2 - Step 5 - Input Field

Input Filter – This field will exclude the ones users don’t wish to drill down.

Tableau Drill Down - Example 2 - Step 5 - Input Filter

Previous Level Display – This will display the previously selected drill-down options to the users using a bracket (∟).

Tableau Drill Down - Example 2 - Step 5 - Previous Level Display

Level Down Field – This field instructs the Drill Down level parameter to go down to a level when users click on the visual to drill down.

Tableau Drill Down - Example 2 - Step 5 - Level Down Field

Step 6: Now, create a pivot table by following the tasks below.

  • Drag the Previous Level Display and Dimension Level to the Rows shelf
  • Drag Salary in USD to the Columns shelf
  • Drag the Input field to the Details.
  • Drag Input Filter to the Filters and then tick the True checkbox.
Tableau Drill Down - Example 2 - Step 6

Step 7: Drag the Level Down Field to the Detail. Right-click on the field and choose Discrete.

Example 2 - Step 7

Step 8: Right-click on the Level Down Field and select Dimension.

Tableau Drill Down - Example 2 - Step 8

Step 9: Right-click on the parameters and show Parameters.

Tableau Drill Down - Example 2 - Step 9

Tableau will display the parameters along with the visual in the view.

Example 2 - Step 9 - Parameters

Step 10: Create a new dashboard and drag the Pivot table sheet to the view. Adjust the view as per below.

Tableau Drill Down - Example 2 - Step 10

Step 11: Click on Dashboard – Actions.

Tableau Drill Down - Example 2 - Step 11

Step 12: In the Actions window, Click on Add Action – Change Parameter.

Example 2 - Step 12

Step 13: In the Add Parameter Action, specify the choices as shown below.

Example 2 - Step 13

Step 14: Similarly, add another action by choosing Add Action – Change Parameter.

Tableau Drill Down - Example 2 - Step 14

Step 15: In the Add Parameter Action, specify the name, Target Parameter, and Source field.

Tableau Drill Down - Example 2 - Step 15

You can view all the defined actions in the Actions screen. Click on OK.

Tableau Drill Down - Example 2 - Step 15 - defined actions

Step 16: Now click on the fields in the view to perform the drill down as shown below.

Tableau Drill Down - Example 2 - Step 16

Step 17: In a new worksheet, create multiple calculated fields by specifying the logic in the calculation editor screen. These include:

Level up Field – This will ensure that if the user is away from the first level, then they can go back one level up.

Tableau Drill Down - Example 2 - Step 17 - Level up Field

Prev Level Input – This calculation will ensure that Tableau understands what to show when users go a level up.

Tableau Drill Down - Example 2 - Step 17 - Prev Level Input

Level Up Label

Tableau Drill Down - Example 2 - Step 17 - Level Up Label

Step 18: Create the level-up button by adding MIN(1.0) to the Columns shelf.

Tableau Drill Down - Example 2 - Step 18

Tableau will display the view, as seen below.

Tableau Drill Down - Example 2 - Step 18 - Display

Step 19: Change the Marks type to Shape. Drag the Level Up Label to the Shape and Detail.

Example 2 - Step 19

Step 20: Drag Prev Level Input to the Detail. Also drag Level Up Field to the Detail.

Example 2 - Step 20

Step 21: Apply customization to the view.

Tableau Drill Down - Example 2 - Step 21

Step 22: Create a calculated field [Drill down level] – 1 by adding it via a filter.

Tableau Drill Down - Example 2 - Step 22

Step 23: Drag the field to the Pages pane.

Tableau Drill Down - Example 2 - Step 23

Step 24: Right-click on the axis and choose Edit Axis.

Example 2 - Step 24

Step 25: In the Edit Axis, specify the choices as per below.

Example 2 - Step 25

Step 26: Right-click on the axis and uncheck the Show Header option.

Tableau Drill Down - Example 2 - Step 26

Step 27: Apply customization to the view.

Example 2 - Step 27

Step 28: Drag the Level Up Calc sheet to the view.

Tableau Drill Down - Example 2 - Step 28

Step 29: Click on Dashboard – Action. In the Actions page, click on Change Parameter.

Tableau Drill Down - Example 2 - Step 29

Step 30: In the Create Parameter Action, specify the logic for the action as per below.

Tableau Drill Down - Example 2 - Step 30

Step 31: Similarly, add parameter action for the Tableau drill down level-up action as highlighted below.

All the Tableau actions can be viewed on the Actions screen.

Tableau Drill Down - Example 2 - Step 31 - Action screen

Step 32: Now, on the Tableau drill down dashboard view, click on the column values to perform drill-down. As you can see, Tableau has applied a drill-down to navigate to the Job Type level.

Tableau Drill Down - Example 2 - Step 32

Step 33: Click on the Go to Employment Type button to drill up. You can continue doing so to drill up to the Experience Level.

Tableau Drill Down - Example 2 - Step 33

Example #3 – Drill Down Bar Chart

In this example, we will display a working example of drilling down a bar in Tableau using the Data Worldwide Coffee Habits dataset. The Worldwide Coffee Habits contains a detailed look into coffee consumption patterns across various countries, providing valuable insights into how coffee is enjoyed around the world.

To drill down a bar chart in Tableau, follow the instructions outlined below:

Step 1: Connect to the Worldwide Coffee Habits dataset.

Example 3 - Step 1

Step 2: Drag Year and Coffee Consumption fields to the Tableau view.

Example 3 - Step 2

Step 3: Change the Year to Discrete.

Example 3 - Step 3

Step 4: Drag and drop Year to Filters pane.

Tableau Drill Down - Example 3 - Step 4

Step 5: Specify the year range between 2015 and 2023 in the Filter screen.

Example 3 - Step 5

Step 6: Change the view to Entire View. In the Tableau view, you will see a bar chart.

Example 3 - Step 6

Step 7: Drag Year to the Color to create a visualization as per below.

Tableau Drill Down - Example 3 - Step 7

Step 8: Click on Color – Edit Colors. Specify the Color Palette for the visual.

Example 3 - Step 8

Tableau will update the visual using the chosen color palette.

Tableau Drill Down - Example 3 - Step 8 - color Palette

Step 9: In a new worksheet, create another visual by dragging the fields to the view. This visual is the breakdown of coffee consumption across different types of coffee varieties.

Tableau Drill Down - Example 3 - Step 9

Step 10: Change Year to Discrete.

Tableau Drill Down - Example 3 - Step 10

Tableau will create a bar chart with a breakdown of different coffee varieties across the years.

Example 3 - Step 9 - Bar chart

Step 11: Apply the Year filter in the Filter pane.

Tableau Drill Down - Example 3 - Step 11

Step 12: Apply color-coding to the visual by dragging the Type of Coffee to the Color.

Example 3 - Step 12

Step 13: Go to the previous worksheet. Select Worksheet – Actions.

Tableau Drill Down - Example 3 - Step 13

Step 14: In the Filter Action screen, specify the source and target sheets. Click OK.

Tableau Drill Down - Example 3 - Step 14

Step 15: Click on OK on the Actions screen.

Tableau Drill Down - Example 3 - Step 15

Step 16: Click on a bar chart, say 2019.

Tableau Drill Down - Example 3 - Step 16

Tableau will navigate you to the coffee consumption for different types of coffee and a year sheet showing the breakdown across different coffee variants.

Tableau Drill Down - Example 3 - Step 16 - breakdown

Important Things to Note

  • For Tableau drill down hierarchy, ensure that the levels are accurately defined for a seamless drill-down experience.
  • For actions, be clear about specifying the source and target sheets for an accurate drill down.
  • Drill down may have performance implications that need to be considered, especially for large datasets.
  • Ensure that you have performed testing for accurate Tableau drill down results.
  • It is recommended that you clearly define the level-down and level-up navigations for a smooth drill-down experience for the end users.

Frequently Asked Questions (FAQs)

1. Can I drill down across multiple levels in Tableau?

Yes, you can drill down across multiple levels in Tableau. You can do so either by using the hierarchies or by setting actions to apply drill-downs across multiple levels.

2. Is drill-down supported in Tableau Server and Tableau Online?

Yes, you can apply to drill down in Tableau Server and Tableau Online.

3. Can drill-down actions be combined with other Tableau features like filters and parameters?

Yes, absolutely. You can combine drill-down actions with other Tableau features such as Filters and parameters. Please refer to the examples section for the same.

4. Can drill down be used to analyze both numerical and categorical data in Tableau?

In Tableau, you can drill down on both numerical and categorical data. For example, you can drill down on total profits across different regions to determine the state/city that contributes the most to the total profits.

Guide to What Is Tableau Drill Down. We learn how to drilldown in Tableau with step-wise examples, and points to note. You can learn more from the following articles –

Tableau Action Filter

Tableau Alerts

Hierarchy in Tableau

Reader Interactions

Leave a Reply

Your email address will not be published. Required fields are marked *