Introduction
Dynamic zone visibility allows you to control views or containers using a parameter or a field. With this feature introduced in Tableau 2022.3 you can easily swap charts, zones, or even the entire dashboard.
In this short article, I’ll be demonstrating how you can use this feature to swap an entire dashboard.
But before that, explore how you can use this feature to swap between light and dark themes in your dashboards.
For demo purposes, I’ll be using this workbook which contains three dashboard tabs namely, Summary, Profitability, and Discount.
(Each of these dashboards has a size of 600x730 pixels)
The goal here is to present the same information in a single dashboard (rather than three dashboards), by using dynamic zone visibility to control which layout container is visible.
To do that, first create a string parameter as shown below.
Next, in a new worksheet create placeholders (containing the parameter values) – this worksheet will be used to select parameter values through a parameter action.
To use dynamic zone visibility, a field or a parameter MUST be a Boolean. Therefore, I need to create three Boolean fields which will be used to control the layout container based on the value selected on the parameter through the parameter action.
Next, create a dashboard containing the trigger worksheet (parameter selector), and the three dashboards above, each on its own layout container as shown below.
(The dashboard contains the previous separate dashboards all in one dashboard – dashboard size 1800x730 pixels)
Assign the values you would like to use to control the visibility of the different containers. For the layout container containing the summary, I will control it using the value ‘Summary – T/F’
For the layout container containing Profitable orders, I’ll control it using the value ‘Profitability – T/F’
For the layout container containing Discount, I’ll control it using the value ‘Discount – T/F’
Next, create a parameter action to change the value on the parameter based on the selection on the worksheet (parameter selector) – which in turn, controls visibility of the layout containers.
Minimize the size of the dashboard to the original size of 600X730 pixel.
(With this dashboard, you can easily control the different dashboards by simply selecting on the text values)
Interact with the dashboard here!
Conclusion
If this post was helpful and you would like to receive more of these Tableau tips and tricks, kindly subscribe to our mailing list below.
If you like the work we do and would like to work with us, drop us an email on our Contacts page and we’ll reach out!
Thank you for reading!