Opens in a new tab
MIP Logo

Tableau GIF Tutorial: Add Drill Down To Your Chart Using Set Actions

This post was originally published on The Data School blog between 2018 and July 2025, before our program was renamed to MIP’s Analytics Career Accelerator. References throughout this article to “The Data School” or “DS” all refer to what is now MIP’s Analytics Career Accelerator. The program, its people, and its commitment to launching outstanding analytics careers remain the same – just under a new name.

If you are having trouble viewing this article, please report it here. 

Tableau GIF Tutorial Series

Last time, I showed you how to make a Pareto chart. This time, we’re going to create a chart that can drill down, and up, using set actions. As always, we’ll use the classic Sample – Superstore data set. For this tutorial, we’ll use a scatter plot to demonstrate the drill down capability.

How to Add Drill Down To Your Chart Using Set Actions

1. From the Data tab, drag Profit to Columns, Sales to Rows and State to Detail in Marks pane.

Tableau Tutorial Drill Down - Create a Scatter PlotStep 1

2. In the Data tab, right click State, select Create and then Set.
3. In the Create Set window, select All and hit OK.
4. Click on Worksheet and select Actions.
5. In the Actions window, click Add Action and choose Change Set Values.
6. In the Add Set Action window, enter a suitable name (Select a State for this case), select State Set in Set and hit OK.

Tableau Tutorial Drill Down - Create Set and Set ActionSteps 2-6

7. Click the ▼ in the Data tab and select Create Calculate Field.
8. Enter a suitable name (States in Set for this case) and enter the formula IF [State Set] THEN [State] END.
9. Click the ▼ in the Data tab and select Create Calculate Field.
10. Enter a suitable name (States or Cities for this case) and enter the formula IF { COUNTD([States in Set]) } = 1 THEN [City] ELSE [State] END.

Steps 7-10

11. From the Data tab, drag States or Cities to Label and State Set to Detail in Marks pane.
12. From the Data tab, right click drag State Set to Filters pane.
13. In the Filter Field window, select In / Out.
14. Hit OK in the Filter window.

Steps 11-14

15. To drill down from states to cities in the scatter plot, click on a state. To drill up back from cities to states, double click on a city.

Step 15

Share this post