fbpx

How to Automate a Dynamic Title in Tableau

3.2022CPBlogthumbnailresized281229

ARTICLE SUMMARY

Indhumathy Chelliah, explores the different ways to create dynamic titles in Tableau, using 3 different methodologies.

In tableau, we can create dynamic titles based on our selection.

Let’s explore how to create dynamic titles in this tutorial

1. USING THE FILTER OPTION

2. USING THE PARAMETER OPTION

3. USING BOTH THE FILTER AND PARAMETER OPTION

1. Using the filter option

We can automate the title by using a filter. The option selected in the filter will automatically display in the title. We have to click the title, then edit the title and click the insert button and select the filter name.

You're invited! Join SheCanCode's Women in Tech Community

Find a supportive network, opportunities, jobs & much more, so you can excel in your tech career.

 

Example:

I have created a Sales line chart for every year using the Superstore dataset. My tableau workbook can be downloaded here.

Row Shelf: Order Date and check the Month option

Column Shelf: Sales

Filter: Drag Order Date to filter option and click “Years” and select all the years. Click the dropdown and select “Show Filter”. Year (Order Date) filter option will be displayed. Select “Single Value Dropdown” from the filter “Year (Order Date)”

Now go and edit the title and add Sales Chart for Year, then click insert and add “Year(Order Date)”.

Now the title will reflect the year selected in the filter option.

2. Using parameter option

We can automate the title by using a parameter. The option selected in the parameter will automatically display in the title.

Step 1: Create a parameter.

Add the fields which you want to include in the title.

Here, I want to display Sales or Profit in the title based on the selection.

 

Step 2: Create a Calculated Field.

Case [Sales/Profit] When ‘Sales’ then [Sales]

When ‘Profit’ then [Profit]

END

This calculated field will match the parameter selection to the column you want to display.

If “Sales” is selected from Parameter option, then the “Sales” column will be shown.

Step 3: Create a visualization

We want to create a Sales Line Chart /Profit Line Chart over years

Row Shelf: Drag Order Date to the row shelf and select the Month option.

Column Shelf: Drag the calculated field we have created.

Right click the parameter “Sales/Profit” and click “Show Parameter”

Title: Edit the title and insert the parameter option and write Chart.

Now the title will dynamically reflect based on the option selected in the parameter.

3. Using the filter and parameter option

Let’s create a Sales/Profit chart for a particular year selected.

The title should automatically display

1. Sales/ Profit [This can be done by using parameter]

2. Year [This can be done by using filter option]

Row Shelf: Drag Order Date to the row shelf and select Month option.

Column Shelf: Drag the calculated field we have created.

Right click the parameter “Sales/Profit” and click “Show Parameter”

Filter Shelf: Drag the Order Date column and select “Year” and select all years and click ok.

Right click and Click Show filter. Click the filter option and select single value (dropdown).

Title: Edit the title and insert the parameter option and write “Chart Over Year” and insert “Year (Order Date).

Now the title will automatically display the filter and parameter option selected.

Conclusion:

In this article, I have covered three different ways to automate a title in tableau. Thanks for reading and I hope you all like it.

RELATED ARTICLES

Regression analysis is one of the most fundamental concepts in machine learning. This article briefly introduces linear and logistic regression and how to implement them...
Bryn Bennett, a Full Stack Engineer at Stealth Startup, shares her experience of becoming a Software Engineer and tips for securing your first job.
Conveying the results of your work is all about telling the story your results are trying to tell. To tell a good story, you need...
Using arrays is one of the most utilised functions when programming. In this article, we break down how to manipulate this data structure efficiently.

This website stores cookies on your computer. These cookies are used to improve your website and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, see our Privacy Policy.