All in Tableau How-Tos

Traditionally the set feature in Tableau is used to create a subset of predefined values. Those may be handpicked (i.e. How do these 5 products perform regionally?) or they may be chosen conditionally (i.e. Where are our top 100 customers by revenue located?). They are generally used to create predefined values you can filter on.

I was working with a client recently and needed to do find and replace in a Tableau calculation. While Tableau does have a native FIND() function, it just finds if a character string exists and tells you what position that string starts at. Not particularly helpful when it comes to replacing.

Imagine you have a busy worksheet in Tableau that looks like this:

Each line represents a single facility and displays that facility’s overtime hours. Imagine you want to filter to only keep the trends for the 3 facilities with the highest overtime hours from the most recent date BUT you also want that filter to be dynamic so when you update the data there might be a new top 3.