As I have recently started my journey in the Tableau community forums, I have come across different questions. One of them has repeated a few times and I thought I would make a blogpost using the tutorials I’ve already wrote on the forums, so more people can find them.
The question read like this:
![](https://www.thedataschool.co.uk/content/images/wordpress/2019/01/FF1-1024x189.png)
Not so long ago I had a similar question and I tried different approaches. However, what came closer to my answer was this tutorial made by Simon Runc https://community.tableau.com/docs/DOC-8385
One example where I used this technique was to produce this viz, where the icons at the top work as a way to swap between sheets. Keep reading if you are interested in how to build this.
![](https://www.thedataschool.co.uk/content/images/wordpress/2019/01/Dashboard-1.png)
Implementing this technique step by step:
1) Create buttons. Simple calculations as shown. One for sales another for profit (the one for profit called Profit Button and has “Profit” inside).
![](https://www.thedataschool.co.uk/content/images/wordpress/2019/01/Sheets1.png)
2) Create a sheet called Sales Button which will work as the button for sales. It has the sales button calculation in detail and the marks card is formatted as shape and the shape is the picture you are using (shapes can be added to your Tableau Repository Folder in the “Shapes” folder).
![](https://www.thedataschool.co.uk/content/images/wordpress/2019/01/Sheet2-1024x573.png)
3) Repeat step 2 for profit.
![](https://www.thedataschool.co.uk/content/images/wordpress/2019/01/Sheet3-1024x522.png)
4) Create the “action” calculated field. One called 0zero and other 1One. Make sure they are discrete and dimension. These buttons will allow filtering later. Create calculations as following:
![](https://www.thedataschool.co.uk/content/images/wordpress/2019/01/Sheet4-1024x273.png)
![](https://www.thedataschool.co.uk/content/images/wordpress/2019/01/Sheet5-1024x266.png)
5) In your sales button and profit button worksheets configure the marks card as following (Shape with those three pills in detail):
![](https://www.thedataschool.co.uk/content/images/wordpress/2019/01/sheet6.png)
6) Add your buttons and your other worksheets to the dashboard.
![](https://www.thedataschool.co.uk/content/images/wordpress/2019/01/sheet7.png)
7) Create the selection action as following. This will make sure that when you select one of the icons it will show that. Do it for both profit and sales. Pay attention to the configuration of selected fields.
![](https://www.thedataschool.co.uk/content/images/wordpress/2019/01/sheet8.png)
![](https://www.thedataschool.co.uk/content/images/wordpress/2019/01/sheet9.png)
Action Configuration, Step 2
8) Create the actions that will make sure that the other worksheet doesn’t display. Again, pay attention to the configuration of selected fields.
![](https://www.thedataschool.co.uk/content/images/wordpress/2019/01/sheet11.png)
Action Configuration, Step 3
![](https://www.thedataschool.co.uk/content/images/wordpress/2019/01/sheet10.png)
Action Configuration, Step 3
And now with that you should be able to swap sheets by clicking between the different images. You can download the workbook here.
The forums are a great way to learn! I definitely encourage everyone to post their doubts and answer some questions if you can!
![](https://www.thedataschool.co.uk/content/images/wordpress/2019/01/FF2.png)
For any comments you can find me in Twitter @DiegoTParker