
In the last 2 weeks right after or during the TC18, Tableau revealed a few very interesting features for Tableau 2018.3, one of which was an addition to our workbook / dashboard Action, which is ‘Change Set Values…’
The steps are very simple:
a. Create sets based on the drill down etc
b. Write a formula including the sets to make it behave as per your analysis
c. Create the set action and test your viz.

The Tableau community has been very excited with this addition, and why not. It makes our lives much more easier when building dasboards in Tableau and when detailed analysis is required. Earlier it was possible but required lot of data modelling and was slower. Here I will explain how to use Set Action for interactivity by using these beautifully done Workoutwednesday dashboards by @AnnUJackson and @RodyZakovich.
Lets get into then. First of I will display the week 45th wow dashboard here.
Here is how it is done. (Set Action Only). Make sure in the ‘Marks’ it is a square not text.
- First of all, let’s create a parameter for the X axis which can be either Region or Segment; similarly create a parameter for Y axis which can be Category or Sub-Category. Now create calculated field X and Y, which is just to change the Values w.r.t the chosen option in the paramters. This is how the X looks like, see below. Y will be similar but will be along the Y axis parameter.

- Now create a set using the “X” and “Y” calculated fields. Remember the idea is to highlight and not filter. So the sets will look like this, If X is ‘Region’ or Y is ‘Sub-Category’. It can be any row on which the mouse hovers over.
Set Y, similarly can be any column the mouse hovers over.
- Create a calculated field depending on the behaviour; we want a highlighted criss-cross, depending where the mouse is on the table. So the formula will be used in the color mark. So we will say if set X or Y then 1 else -1. In the color mark we will set it as max(selected)

- In the color pane give 1 the highlight color you like.

- Final piece of the puzzle: create the action sets.
Test the set action and you are done.
Now let’s have a look at other fantastic uses of Set Action.
Here are two seperate uses of set action, one being the line graph, wherein you can drill down into detailed date analysys from years to months etc.
Second is the tree map, wherein you can drill down till the product name level and its sales value.
- The time chart is simple – Sales on Y axis and Month on X axis. We created the set time, which includes all the months in the data set, and we will be using this to filter our next worksheet, which is the TreeMap. So we put the Set in the filter area and check ‘In’ only. Set this for both line chart and the tree map worksheet.

- So we want to select smaller chunks of date ranges using our mouse and would want the viz to show the line chart only for that range. Simply creating the set action will allow us to achieve this, since we have the set in the filters panel. There’s no requirement of any calculated field. The “In” filter will take care of it as shown above.

- For the TreeMap, we have created one set for a combination of Category and Sub-Category and also a calculation field to make the set action to drill down to sub-category from category

- The formula for drilling down to Sub-Category is

- We will use this formula to create our second set, so that we can drill down further from the resultant Sub-Cat to Product name.

- Like always, here is the last step, creating the Set Action for drill down from Category -> SubCategory -> Productname


