This blog will demonstrate a use case of the dynamic zoom feature in Tableau.
The dashboard used to demonstrate the dynamic feature consists of three parts.

The top metric shows the basic information about the sales.
The middle part is the bar chart that shows the sales distribution among the three segments.
The bottom map shows the sales/ profit distribution among different locations. The parameter at the top right of the map enables the user to switch between sales and profit measures.
In this case, we want to hide the map chart with the parameter when users open the dashboard. It will unhide only when the users click the bar chart.
In the previous version of Tableau Desktop (Before 2022.3), we can use parameters to swap the charts. But the swapping function has some limitations.
For example, when we swap the charts, the parameters in the charts will not change along with the swapping. Now, this feature has been improved with the function of Dynamic Zone Visibility. This is because we can set the Dynamic Zone Visibility feature on the container instead of being limited to the charts.
To enable the function, the first step is to create a parameter.

Then, create a calculated field that will be used to control the visibility.

In the dashboard, select the container that contains the map chart and parameter. In the layout panel, tick the checkbox called ‘Control the visibility using the value’. At last, choose the calculated field we created.

The last step is to set the dashboard action as shown below.

You can test the function by clicking the bar and clearing the selection.

If you have any questions, feel free to reach out to me through the link.

