Dynamic Zone Visibility in Tableau : Bijay Kumar

Dynamic Zone Visibility in Tableau
by: Bijay Kumar
blow post content copied from  SalesForce FAQs
click here to view original post



### Summary of Dynamic Zone Visibility in Tableau In this tutorial, we explore how to use **Dynamic Zone Visibility** in Tableau, a feature that allows users to toggle between different charts on the same dashboard without creating multiple dashboards. For instance, you can switch between a bar chart showing sales by region and a line chart displaying sales trends over time. **Key Details:** - **Dynamic Zone Visibility** allows you to control the visibility of charts, tables, and other elements based on user-defined conditions. - You can use parameters to toggle between different views, enhancing user experience by customizing what they see based on their selections. - The tutorial provides step-by-step instructions for implementing this feature, including creating parameters and calculated fields to manage visibility. **Steps to Implement Dynamic Zone Visibility:** 1. **Create Charts:** First, create the necessary charts (e.g., bar and line charts). 2. **Create Parameters:** Set up a parameter (e.g., "Chart Selector") to allow users to choose which chart to display. 3. **Calculated Fields:** Create calculated fields to determine the visibility of each chart based on the selected parameter. 4. **Dashboard Setup:** Add the charts to a dashboard and apply dynamic visibility settings to each chart using the calculated fields. 5. **Multiple Parameters:** If needed, you can create multiple parameters to toggle between different types of data and chart styles. By following these steps, users can easily switch between various chart types and data representations, making the dashboard more interactive and user-friendly. ### Additional Context Dynamic Zone Visibility is particularly useful for data visualization in business intelligence, allowing decision-makers to focus on specific datasets without being overwhelmed by information. This feature can significantly enhance the clarity and effectiveness of dashboards in Tableau. ### Conclusion This tutorial provides a straightforward method to implement Dynamic Zone Visibility in Tableau, offering users greater control over their data visualizations. By using parameters and calculated fields, you can create a more engaging and tailored experience for your dashboard users. ### Relevant Hashtags for SEO #Tableau #DataVisualization #BusinessIntelligence #DynamicZoneVisibility #DashboardDesign #DataAnalysis #TableauTutorial #UserExperience #InteractiveDashboards #DataScience


When I was working on a Tableau workbook, I wanted a feature that would allow us to toggle between two different charts on the same dashboard.

For example, sometimes I wanted to see a bar chart of sales by region, and other times I wanted to switch to a line chart showing sales trend over time.

Instead of creating separate dashboards or switching tabs, we can use Tableau’s Dynamic Zone Visibility to show or hide charts based on a parameter.

In this Tableau tutorial, I will explain how to use dynamic zone visibility in Tableau to show or hide charts.

Dynamic Zone Visibility in Tableau

In Tableau, Dynamic Zone Visibility is a feature that allows us to control whether a chart, table, filter, or container is shown or hidden based on the defined conditions.

Instead of displaying all objects at once, we can define their visibility to a parameter, calculated field, or Boolean condition so that they only appear when required.

For example, we can allow users to switch between a bar chart and a line chart using a parameter, or display a detailed table only when the “Show Details” option is set to true. This makes dashboards and worksheets customized according to the user’s needs.

Add Dynamic Zone Visibility in Tableau

To implement dynamic zone visibility in Tableau, we use parameters. For this, we can use a single parameter for one condition and multiple parameters to apply multiple conditions in zone visibility.

In the example below, we will add dynamic zone visibility in Tableau using the following methods.

  • Add dynamic zone visibility using a parameter in Tableau
  • Add dynamic zone visibility using multiple parameters in Tableau

Add Dynamic Zone Visibility Using a Parameter in Tableau

In this example, using the Dynamic zone visibility, we will display two charts (a line chart and a bar chart) on the Tableau dashboard using a button toggle.

Now, connect the tableau with the Superstore dataset and follow the steps below to see how to use dynamic zone visibility for buttons in Tableau.

  1. First, create the charts below that will show the use of conditions.
    • Bar Chart → Sales by region
    • Line Chart → Sales over the years

Now, we will create a parameter that will allow us to switch between the two charts.

  1. To create a parameter, click on the dropdown near the search bar and select Create Parameter. After this, define the parameter with the following details.
    • Enter the Name as Chart Selector.
    • Select the Data type as String.
    • In the Allowable values, select the option list.
    • Enter the string Values for the line and bar chart, then click OK.
Show conditional visibility in Tableau Dashboard
  1. To make the parameter visible, click on the parameter in the sidebar and select Show parameter.
Add dynamic zone visibility in Tableau Dashboard
  1. Now we’ll create two calculated fields, one for each chart’s visibility, using the formulas below.
//Show bar chart
[Chart Selector] = "Bar"

// Show line chart
[Chart Selector] = "Line"
  1. Now, create a new dashboard, and drag the line chart and bar chart onto the dashboard canvas.
Tableau dashboard Dynamic zone visibility using buttons
  1. Now, we will apply dynamic visibility to both charts. First, select the bar chart, then under Layout, go to Control visibility using value. Then select Bar Chart visibility calculation, Show Bar Chart.
Add dynamic zone visibility for charts in Tableau Dashboards
  1. Now, select the Line chart, then select Layout -> Control visibility using value -> Line chart calculation Show Line Chart.
Add Chart visibility in Tableau dashboards
  1. To make the parameter visible on the dashboard, click on the chart dropdown and select Parameters -> Chart Selector (created parameter).
Tableau dashboard Dynamic zone visibility

The Chart Selector parameter will now be visible on the dashboard. With this, we can select which chart we want to display on the dashboard.

Switch Dynamic Zone Visibility Using Parameters in Tableau

This way, we can apply dynamic zone visibility to charts in a Tableau dashboard by using parameters.

Add Dynamic Zone Visibility Using Multiple Parameters in Tableau

In Tableau, Dynamic Zone Visibility, we can combine multiple Boolean parameters to create conditions that show or hide specific charts based on different choices.

This is useful when you want to toggle between multiple chart types and measures in the Tableau dashboard.

For this example, I have built the following four views on separate sheets:

After creating the charts, follow the steps below to apply dynamic zone visibility using multiple parameters in the Tableau dashboard.

  1. First, we will create the parameters’ Graph Type‘ and ‘Value‘. To do this, right-click on the data pane and select “Create Parameter.”
  1. Enter the details for the parameter, which will select the chart type between Bar and Line.
    • Enter the Name as Graph Type
    • Select the Data type as Boolean
    • Enter value “Bar” for “True” and “Line” for “False” and click OK.
Dynamic zone visibility in Tableau using Multiple parameter
  1. Enter the details for the second parameter, which will select the data for the selected chart, whether it is for quantity or sales.
    • Enter the name as Value.
    • Select the Data type as Boolean.
    • Enter the value Sales for True, and Quantity for False, then click OK.
Use multiple parameters for zone visibility in tableau dashboard
  1. After defining the parameters, we will create a calculated field that will determine the conditions for chart visibility in the dashboard. Use the formulas below for the visibility calculations of all four charts.
//Bar-sales
[Graph Type] = TRUE AND [Value] = TRUE

//Bar- quantity
[Graph Type] = TRUE AND [Value] = FALSE

//Line-sales
[Graph Type] = FALSE AND [Value] = TRUE

//Line-quantity
[Graph Type] = FALSE AND [Value] = FALSE

These calculations ensure only one chart shows at a time, depending on the parameter values.

  1. Now, create a new dashboard and add four charts to it.
Apply conditional visibility to multiple charts in Tableau Dashboard
  1. After adding the charts, we will apply Dynamic Zone Visibility to the charts. To do this, select the “Bar – Sales” sheet on the dashboard.

Go to Layout Pane → under Control visibility using value, select the calculated value of Bar-sales.

Use dynamic zone visibility in Tableau for multiple parameters

In the same way, select the calculated field for the other sheets in the dashboard.

  1. Now, in the parameters, change the Graph Type parameter to Bar‘ or ‘Line‘, then change the Value parameter to ‘sales‘ or ‘quantity‘.
Multiple measure dynamic zone visibility in Tableau

According to the calculation of the values in both parameters, the chart will be displayed on the dashboard. For example, if we select ‘Graph type‘ as ‘Line‘ and ‘Value‘ as ‘Quantity‘, then a line chart of quantity over time will be displayed.

This way, we can add Dynamic zone visibility using multiple parameters in Tableau.

Conclusion

In this Tableau tutorial, we learned how to use Dynamic Zone Visibility in Tableau to show or hide charts with a parameter button. Instead of adding a dashboard with multiple charts, we used parameters with Boolean calculations and used them as visibility toggles.

This way, the end-user can switch between different charts or views as needed. With this approach, you’ll be able to give more control to users while maintaining a cleaner view in the Tableau dashboard.

You may also like to read:

The post Dynamic Zone Visibility in Tableau appeared first on SalesForce FAQs.


September 12, 2025 at 11:51PM
Click here for more details...

=============================
The original post is available in SalesForce FAQs by Bijay Kumar
this post has been published as it is through automation. Automation script brings all the top bloggers post under a single umbrella.
The purpose of this blog, Follow the top Salesforce bloggers and collect all blogs in a single place through automation.
============================

Salesforce