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