MIP Logo

Highlighting the Target Group in Tableau

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 is a powerful tool to visualize data with versatility from both designer’s and user’s end. Coloring a highlighted group is an instinctive way in data viz to get audiences into the target group. Here we are going to focus on how we could achieve this with creating calculated field. The picture below shows how efficient it is to highlight the “High Sales” and “High Profit” product in the visual. And we are going to do this together in this article!

  1. Load the Sample – Superstore Data Source, create the view by dragging [Sales] to the Columns and [Profit] to Rows.
  2. Drag [Product Name] to Detail, which will set up the view as follows.
  3. Right Click on the Sales Axis, select “Add Reference Line”, in the pop up window, select “Average” and Label as “Value”; repeat the steps for Profit Axis and you will get two reference lines with average values as follows.
  4. Create calculated field that create a Boolean condition for the target group to be highlighted, in this case both Sales and Profit Value larger than the average value.
  5. Drag the calculated field to the Color Pane which will highlight the target group and edit the colors to your desired.

With target group highlighted, it will make it much easier for the audience to follow. In the next blog, we will be focusing on how we could use parameters to offer more control and interactivity for the users to manipulate the threshold value to achieve dynamic highlighting.

Share this post