Dynamic Zone Visibility is a powerful feature in Tableau that allows users to control the visibility of various elements or zones on a dashboard based on user interactions or specific conditions. This functionality enhances interactivity by dynamically showing or hiding sections of the dashboard depending on user actions or parameter values.
This is super helpful because it allows you to declutter your dashboard and maximize space for the most important charts, while still giving users the option to view additional information only when they need it.
This week, I’ll share some of the methods I learned at The Data School for creating dynamic dashboards in Tableau.
Method 1: Using Show/Hide Buttons
1. On your dashboard, click the drop-down arrow on the chart you want to show or hide, and select “Add Show/Hide Button.”

2. Tableau will then create a default “X” button as the Show/Hide button. You can edit the button’s style to use text or an image. If you click on the drop-down arrow of this button, you will have the option to change it into different text or images for when the item is shown or hidden.

3. Clicking this button will show or hide the selected item. In this example i have chosen to use text for my button style. (Tip: If you keep the dynamic item in a container with another chart, the other chart will automatically expand to fill the empty space when the dynamic item is hidden.)
Method 2: Using Parameters
1. Start by creating a Boolean parameter that will control the visibility of the item (e.g., showing or hiding the filter pane).

2. Next step is to create a calculated field to use as our buttons.

3.In a new sheet, change the mark type to “Shape.” Then, drag the calculated field to the Shape card. Show the parameter control, and assign different shapes for each condition (true or false).
4. On the dashboard, select the item you want to show/hide. Then, go to the Layout tab, check “Control visibility using value,” and select the parameter you created.

5. Finally, add the sheet containing your calculated field button to the dashboard. Go to Dashboard > Actions > Add Action > Change Parameter. Configure the settings accordingly. Your button should now be functional.
Dynamic Zone Visibility is an effective way to create more interactive and user-friendly dashboards in Tableau. By using show/hide buttons and parameters, you can give users control over what they see, enhancing their experience and making your dashboards more engaging and informative. Try these methods to take your Tableau dashboards to the next level!

