A project needs such a toggle in Tableau. My initial design used a scaffold data source with 2 rows. However my excellent colleagues Ryan and Parinita showed me a better one. This design doesn't need an extra data source. Instead, it needs two images as shape. A scaffold data source is supposed to be extracted bu not refreshed. We need to disable its refresh on server. Otherwise the server may throw an error message.
So I am here documenting this design and the credit goes to Ryan and Parinita. In the process, I added deselecting action to the button. Below are the steps.
1.Create a parameter
2.Create a calc field
3.Create a toggle button based on Shapes using the above calc field.4.Set up parameter action for the toggle
5.Set up filter action for deselecting button. Detailed explanation can be found here.
That's it. Go to this dashboard to see it in action. You can steal the shapes in the workbook if you wish. Have fun!
No comments:
Post a Comment