BI & Analytics
Blog
Tableau
5
min read

How to sheet swap in Tableau in just 5 steps

Learn how to sheet swap in Tableau in 5 steps. Dynamically show/hide worksheets using parameters, save dashboard space, and fix common issues.
Author
Arend Verschueren
Arend Verschueren
Head of Marketing & RevOps
How to sheet swap in Tableau in just 5 steps
Share article

Sheet swapping in Tableau lets you dynamically show and hide worksheets in the same dashboard space using a parameter. It saves real estate on a busy dashboard and gives users the choice of how they want to view the data, for example switching between a scatter plot and a bar chart.

This guide walks you through the parameter method in 5 steps, plus the fixes for the issues that always trip people up.

What is sheet swapping in Tableau?

Sheet swapping is a Tableau technique that lets two or more worksheets occupy the same space on a dashboard, with only one visible at a time. The user (or a parameter action) controls which sheet appears, while the others collapse out of view.

The mechanism is straightforward: a parameter changes the value of a calculated field, the calculated field acts as a filter on each worksheet, and any worksheet whose filter returns no rows collapses inside its container. The result is a clean, interactive dashboard.

People sometimes call this "dynamically showing/hiding worksheets in Tableau." It refers to the same technique.

When should you use sheet swapping?

Sheet swapping is worth reaching for whenever dashboard space is tight or you want to give the reader a choice. Common use cases:

  • Toggling chart types for the same data, for example a scatter plot vs a bar chart vs a table.
  • Cycling through KPIs when each one needs its own chart type (a line for trend, a map for geography, a bar for ranking).
  • Mobile and tablet dashboards where vertical space is limited and stacking every view is not an option.
  • Whole-dashboard swaps where the user switches between an executive summary view and a detailed analyst view inside the same workbook.

If you only need to toggle between two views and you are on Tableau 2022.3 or later, Dynamic Zone Visibility is often easier.

How to dynamically show/hide worksheets in Tableau in 5 steps

Here is the full parameter-based method. It works in every modern version of Tableau Desktop and supports as many sheets as you want.

Step 1: Create a parameter for your sheets

Right-click in the Data pane and select Create Parameter. Give it a name like p.Sheet Swap and create one allowable value for each sheet you want to swap between.

Tip: use integers for the Value and clear strings for Display As. The Value is what Tableau sees behind the scenes, and the Display As field is what your user sees in the dropdown, so make those labels easy to read ("Bar Chart", "Scatter Plot", "Data Table"). For more on the underlying mechanics, see Tableau's documentation on parameters.

If you ever need a parameter that holds more than one value at once, take a look at our guide on multiple select parameters.

Create sheet swap paramater in Tableau

Step 2: Create a calculated field using the parameter

Right-click in the Data pane and select Create Calculated Field. Name it something like Sheet Swap Filter and write a simple formula that references your parameter:

[p.Sheet Swap]

Done. This calculated field will return the current parameter value, and Tableau will use it to decide which sheet shows up. If you want a refresher on calculated field syntax, Tableau's calculated fields guide is a good place to start.

Sheet swap calculation in Tableau

Step 3: Add the calculated field as a filter on each worksheet

Drag Sheet Swap Filter to the Filters shelf on every sheet you want included in the swap. In the filter dialog, select only the value that corresponds to the current sheet. So your bar chart filters to "1", your scatter plot filters to "2", and so on.

Pro tip: if the current parameter value does not match the sheet you are working on, Tableau will not let you tick the right box because that value is not currently "in the data." Force it in via Edit Filter > General > Custom Value List > (type your value) > click +  > OK. This saves repeated trips to the parameter control to flip values between sheets.

Step 4: Build your dashboard inside a layout container

Create a new dashboard. Drag either a horizontal or vertical layout container onto the canvas, then drop all of your swappable sheets inside that container.

Two things to do here that are easy to forget:

  1. Hide the title on every swappable sheet. Right-click the title and choose Hide Title. Filters do not affect sheet titles, so if you skip this step you will end up with a phantom title sitting where your collapsed sheet used to be.
  2. Do not fix the size of the container or the sheets inside it. Fixed sizes prevent collapsed sheets from giving up their space, which defeats the whole point.

If you want to give your final dashboard an extra layer of polish, our post on parameter actions shows how to let users swap sheets by clicking on icons rather than using a dropdown.

Step 5: Show the parameter control

Click the dropdown arrow on any sheet in your dashboard, hover over Parameters, and select your sheet swap parameter. The control will appear on the dashboard.

Tableau Sheet swapping example in a container

Now switch the value. The sheets should swap.

Tableau heet swap final result

Troubleshooting: why isn't my Tableau worksheet hiding?

Sheet swapping is one of those Tableau features that works perfectly once you know the rules and refuses to budge before then. Here are the three issues that catch almost everyone.

Problem: The worksheet stays visible even though the filter is working.

Fix: Check whether the worksheet or its container has a fixed size. In Step 4 we put everything inside a layout container so the sheets can resize each other freely. If you set a size limit (right-click the sheet on the dashboard and check the size setting), Tableau cannot collapse the sheet to zero, so it sits there empty instead.

Problem: The sheet hides, but the title remains.

Fix: Worksheet filters do not apply to titles. You need to manually hide the title on every swappable sheet by right-clicking it and selecting Hide Title.

Problem: My bubble chart or pie chart will not hide, even though everything else is set up correctly.

Fix: Gridless chart types, the ones that have no pill on Rows or Columns, do not collapse properly because Tableau has nothing to anchor the filter to. Add a blank pill to one of the shelves to give it something to grab onto. Type "" directly into Rows or Columns, then right-click and choose Hide Header. The chart looks the same but now it behaves like every other view.

Frequently Asked Questions

What does sheet swapping mean in Tableau?

Sheet swapping is a technique where two or more worksheets share the same dashboard space, and only one is visible at a time. A parameter controls which sheet shows, and the others collapse using a filter. It is the standard way to save dashboard space while still giving users a choice between chart types or views.

Why is my Tableau worksheet not hiding when I sheet swap?

The three most common causes are a fixed worksheet or container size (which prevents the sheet from collapsing), an unhidden sheet title (which the filter cannot affect), and gridless chart types like bubble or pie charts with no pill on Rows or Columns. Fixing any one of these usually solves the issue.

Can I dynamically show or hide more than two worksheets in Tableau?

Yes. The parameter method scales to as many sheets as you want. Add one allowable value to the parameter for each sheet, then apply the calculated field filter on every worksheet, selecting the value that matches. Some dashboard builders use this to swap five or more views in a single container.

Should I use sheet swapping or Dynamic Zone Visibility?

Use Dynamic Zone Visibility (Tableau 2022.3+) for simple two-sheet toggles where you also want filters and legends to come along automatically. Use parameter sheet swapping when you need to swap three or more sheets, work in older Tableau versions, or swap entire grouped sections of a dashboard.

Facts & figures

About client

Testimonial

Blogs you might also like

How to Create an Interactive Calendar in Tableau
Arrow icon darkArrow icon dark

How to Create an Interactive Calendar in Tableau

Learn how to create an interactive calendar in Tableau in 4 steps using a date scaffold and Set Actions. Step-by-step tutorial with calculations.

BI & Analytics
Blog
Tableau
Tableau Custom Number Formatting
Arrow icon darkArrow icon dark

Tableau Custom Number Formatting

Master Tableau custom number formatting with copy-paste examples. Learn the syntax for positive, negative & zero values.

BI & Analytics
Blog
Tableau
Introducing Autom8: Automated workflows from within Tableau
Arrow icon darkArrow icon dark

Introducing Autom8: Automated workflows from within Tableau

Autom8 is here. Trigger workflows, sync data, and act on insights — all without ever leaving your dashboard.

BI & Analytics
Blog
Autom8
Tableau's order of operations
Arrow icon darkArrow icon dark

Tableau's order of operations

Learn more about Tableau's order of operations: or what happens when and how. Read the full blog here.

BI & Analytics
Blog
Tableau
Tableau Next features: the complete guide
Arrow icon darkArrow icon dark

Tableau Next features: the complete guide

Learn about the different features in Tableau Next and how they drive faster decision-making.

BI & Analytics
Blog
Tableau
5 Ways to Level Up Your Bar Chart Using Tableau Parameter Actions
Arrow icon darkArrow icon dark

5 Ways to Level Up Your Bar Chart Using Tableau Parameter Actions

Tableau Parameter Actions are a great feature in Tableau. Read all about it in our latest blog.

BI & Analytics
Blog
Tableau
Everything you need to know about Tableau Certifications
Arrow icon darkArrow icon dark

Everything you need to know about Tableau Certifications

Thinking of taking one of the Tableau Certifications? We explore how to get ready in our latest blog. Read all about it here.

BI & Analytics
Blog
Tableau
Personalise your Tableau Dashboard with Custom Titles
Arrow icon darkArrow icon dark

Personalise your Tableau Dashboard with Custom Titles

Learn about how to add the personal touch to your Tableau Dashboard with custom titles.

BI & Analytics
Blog
Tableau
Bar Charts: The Good, the Bad, and the Ugly
Arrow icon darkArrow icon dark

Bar Charts: The Good, the Bad, and the Ugly

Why can bar charts be effective and how to use them to get answers easier, and faster!

BI & Analytics
Blog
Tableau
How to create a waterfall chart in Tableau
Arrow icon darkArrow icon dark

How to create a waterfall chart in Tableau

Learn how to create your own waterfall charts in Tableau Desktop by following these steps.

BI & Analytics
Blog
Tableau
The Ultimate Guide to Embedded Analytics
Arrow icon darkArrow icon dark

The Ultimate Guide to Embedded Analytics

Discover what embedded analytics is all about and how it can drive additional revenue streams for your business.

BI & Analytics
Blog
ThoughtSpot
How to label pie charts in Tableau
Arrow icon darkArrow icon dark

How to label pie charts in Tableau

Learn more on how to label pie charts in Tableau like a pro.

BI & Analytics
Blog
Tableau
How to label bar charts in Tableau
Arrow icon darkArrow icon dark

How to label bar charts in Tableau

Learn how to label bar charts in Tableau like a pro and level up your dashboard design. Read the full article here.

BI & Analytics
Blog
Tableau
How to create a donut chart in Tableau
Arrow icon darkArrow icon dark

How to create a donut chart in Tableau

Looking to create a donut chart in Tableau? Read our in-depth guide on how to level up your donut charts in Tableau here.

BI & Analytics
Blog
Tableau
How to ace your ThoughtSpot certifications?
Arrow icon darkArrow icon dark

How to ace your ThoughtSpot certifications?

Learn more about ThoughtSpot certifications and how to ace your exams.

BI & Analytics
Blog
ThoughtSpot
How to stop marks being highlighted when ‘clicked’ in Tableau
Arrow icon darkArrow icon dark

How to stop marks being highlighted when ‘clicked’ in Tableau

Learn how to stop marks from being highlighted when clicked in Tableau.

BI & Analytics
Blog
Tableau
How to Create Multiple Select Parameters in Tableau
Arrow icon darkArrow icon dark

How to Create Multiple Select Parameters in Tableau

Learn how to create multiple select parameters in Tableau to add more control and interactivity to your analysis.

BI & Analytics
Blog
Tableau
How to apply conditional formatting to tooltips in Tableau
Arrow icon darkArrow icon dark

How to apply conditional formatting to tooltips in Tableau

Learn how to apply conditional formatting to tooltips in Tableau with our step-by-step guide. Improve your data visualization skills today with Biztory.

BI & Analytics
Blog
Tableau
Rediscovering Business Intelligence with Sigma Computing
Arrow icon darkArrow icon dark

Rediscovering Business Intelligence with Sigma Computing

Discover how Sigma Computing is reshaping the BI landscape with its user-friendly interface and powerful capabilities.

BI & Analytics
Blog
Sigma
Sigma Computing: Our Favourite Features
Arrow icon darkArrow icon dark

Sigma Computing: Our Favourite Features

Discover our favourite features of Sigma for powerful and fun data analysis.

BI & Analytics
Blog
Sigma
Tableau vs. Power BI: Everything to know
Arrow icon darkArrow icon dark

Tableau vs. Power BI: Everything to know

Compare Tableau and Power BI to determine the best business intelligence tool for your needs.

BI & Analytics
Blog
Tableau
Tableau Map Layers: Getting Started (1/3)
Arrow icon darkArrow icon dark

Tableau Map Layers: Getting Started (1/3)

Learn how to leverage Tableau's Map Layers feature to create complex visualizations.

BI & Analytics
Blog
Tableau
Tableau Map Layers: Pull everything into one view (3/3)
Arrow icon darkArrow icon dark

Tableau Map Layers: Pull everything into one view (3/3)

Use Tableau Map Layers to combine multiple visuals in a single worksheet and create custom dashboard views for enhanced data visualization.

BI & Analytics
Blog
Tableau
Tableau Map Layers: Building Different Charts (2/3)
Arrow icon darkArrow icon dark

Tableau Map Layers: Building Different Charts (2/3)

Learn how to create Pie, Doughnut, Line, and Area charts using Tableau Map Layers.

BI & Analytics
Blog
Tableau