From Static to Interactive: Mastering Tableau Sets and Set Actions - Part II

In my previous post, I introduced the concept of sets. Dynamic grouping of data. Imagine starting with a bar chart showing Sales by Category from the Superstore dataset.

At first glance we'll see the big picture our categories:
Technology
Furniture
Office Supplies

But what if you want to dig deeper into just one category, without cluttering the view with every sub-category at once? This is a place where set actions come to help us.

Let's start by building simple bar chart Sales by Category:

  1. Place "Category" on Rows and Sales onto Columns
  1. Let's create Category Set. In the data pane find "Category" -> right click Select Create -> Set

Name it "Category Set" and press OK.

  1. Next we are going to create a calculated field that will tell our "Categories" when to expand and show its "Sub-Categories"

  1. Let's rename our worksheet to keep everything organized and tidy. And now we have all the components ready for the drilldown part to start working. For that we need to set our Set Actions this can be done in the Worksheet -> Actions or Ctrl+Shift+A

The following settings window will open up:

on my screen I switched to This Sheet option just to keep it less crowded. If you don't have any other actions in your workbook it will be empty

Add Action -> Change Set Values -> OK

Next we see Configuration window for Set Action:

Change Name -> Source Sheet would be the sheet that we are applying set actions to -> Run action on Select

Target Set is Category Set -> Running the action Assign values to set -> Clearing the selection will Remove all values from set.

After that click OK and our drilldown from "Category" to "Sub-Category" should be working.

Author:
Anastassia Hitt
Powered by The Information Lab
1st Floor, 25 Watling Street, London, EC4M 9BR
Subscribe
to our Newsletter
Get the lastest news about The Data School and application tips
Subscribe now
© 2025 The Information Lab