KNOWLEDGE BASE

How To Collapse Graph Containers On A Button Click


Published: 30 Oct 2020
Last Modified Date: 02 Nov 2020

Question

How to collapse/expand containers on a button click 

Environment

  • Tableau Desktop

Answer

1. Create a parameter with any random string value like "x"
2. Create a calculated field with above parameter. Name it param calc
3. Create a sheet with a placeholder calculation and assign an arrow shape
 User-added image
4. Drag the original sheet and the arrow sheet to dashboard within a horizontal container until it turns dark blue
5. Create a dashboard action like below:
User-added image

Please note that if you have to resize containers, then change the size of view from sheet and not dashboards as the later will make the container non-collapsible
 
Did this article resolve the issue?