BI & Analytics
Blog
Tableau
8
min read

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.
Author
Tamim Abo Saleh
Tamim Abo Saleh
Analytics Engineer
How to Create Multiple Select Parameters in Tableau
Share article

Tableau is a powerful data analysis tool that offers users countless opportunities to add interactivity to their data and the way it is displayed in the final analysis. One such feature that provides more flexibility when it comes to parameter functionality and designing dashboards is Multiple Select Parameters.

What are Multiple Select Parameters in Tableau?

Multiple Select Parameters allow users to choose multiple options at once, just like multiple select filters. However, the current limitation with Tableau parameters is that only one selection can be made. Users have been requesting more flexible parameter options from Tableau's developers, and multiple select parameters may be available in a future Tableau release.

But, what if you want to use Multiple Select Parameters right now? This blog presents a simple method of creating multiple select parameters using parameter actions and formatted sheets. Similar blogs have discussed how to do this, including Marc Reid’s blog on creating a selection panel which describes use cases in great detail.

By following these steps, you can add more interactivity and control to your analysis, allowing the end user to choose the way in which the data is displayed, as well as the information they want to view.

A Use Case for Multiple Select Parameters in Tableau

In Tableau, parameters are often used to replace a filter, a calculation, or a constant value of a reference line in a graph or dashboard. With Multiple Select Parameters, you can provide even more control and flexibility to the end user. So, if you're looking to enhance your Tableau analysis and give your end users more options, follow along with this blog to learn how to create Multiple Select Parameters in Tableau.

The Superstore dataset

Using the Superstore dataset, suppose we want to compare various sub-categories to one another and also to the remaining sub-categories. Employing multiple value filters does not allow us to do this because the filter removes the unselected sub-categories from the view. However, by using a multiple value parameter, we can compare the chosen sub-categories while keeping the unselected values visible in the view and comparing them to the chosen sub-categories. Another way to do this without using multiple value parameters is to use Set actions as explained in this blog.

Multiple Select Parameters in Tableau: Example table using filters to compare values

As shown in Screenshot 1, using multiple value filters allows us to compare Accessories to Appliances. However, the percentage only reflects the difference between the two sub-categories of Accessories and Appliances.

Multiple Select Parameters in Tableau: Example table using multi value parameter to compare values

On the other hand in Screenshot 2, utilising multiple value parameters enables us to compare Accessories and Appliances to the remaining sub-categories.

How to Create Multiple Select Parameters

Using the sample superstore data in Tableau, we will build a simple table of sales for sub-categories in the year 2022.

Step 1: Build the Visualisation                        

For this we will need two sheets. One for the sub-categories sales table (“Sub-Category List”) and another one for the parameter values which will serve as a button list (“Parameter List).

Step 2: Create a String Parameter                

Create a new parameter from the data pane. We will use the Sub-Category dimension as the multiple select parameter for this tutorial, so let’s create the parameter [P.Sub-Category Input] as follows:

How to create multiple select parameters in Tableau: [P.Sub-Category Input] parameter setup


Keep the parameter empty because it will be filled with values from the button list that the user will interact with.

Step 3: Create Four Calculated Fields      

These calculations will be used in our sheets.

1. Sub-Category Input Contains

How to create multiple select parameters in Tableau: [Sub-Category Input Contains] calculated field


This calculation will drive which Sub-Category selection is being made. The contains function looks for the Sub-Category values inside the [P.Sub-Category Input] parameter. This calculation identifies if a member is in the parameter or not. This field will serve as an input list with multiple values to choose for the user and also a legend, as the selected value will be highlighted with a colour.

2. Sub-Category Input Action


Creating multiple select parameters in Tableau: [Sub-Category Input Action] calculated field


This calculation will be applied to the parameter action used on our dashboard later. If a member of Sub-Category is in the [P.Sub-Category Input] parameter, then it will remove the value. If it is not in the parameter, it will add the value to the [P.Sub-Category Input] parameter string. It will also drive the selection/deselection of parameters on the dashboard.


3. [True]


Multiple select parameters in Tableau: [True] calculated field



4. [False]



Tableau Multiple Select Parameters - [False] calculated field


The [True] and [False] boolean calculated fields are needed to give the feeling of a button for the parameter value list.

This technique automatically removes text highlights to give the feeling of a button. This is where the two fields we created, [True] and [False] come in handy.

Step 4: Build The Sheets

We have two sheets to be created for this dashboard:

Sheet 1: “Parameter List” Sheet:

This first sheet will be used to build out the parameter selection list and will serve as a colour legend as well.

  1. Create a new sheet and rename it to something like “Parameter List”.
  2. Drag [Sub-Category] onto the rows shelf
  3. Drag [Sub-Category Input Contains] that we created in step 3, onto the colours mark
  4. Drag [Sub-Category] onto the text mark
  5. Drag [P.Sub-Category Input], [Sub-Category Input Action], [True], and [False] fields onto the details mark
  6. Also, create a new field SUM(1) and drag it to the size mark, and increase the size to the maximum.
  7. Set marks type to Gantt Bar

The marks card should look something like this:

Creating Multiple Select Parameters in Tableau: Expected Marks card


Now, format the parameter list as follows:

  1. Set the label text alignment to centre.
  2. Untick show header.
  3. Remove grid lines.
  4. Click on the colour marks and add a border.

You will be able to see something like this:

Clickable multi value list when creating Multiple Select Parameters in Tableau


Now this is a  clickable multi value list that the end user can use to select one or multiple sub-categories.

Sheet 2: “Sub-Category List” Sheet:

To build the second sheet, follow the steps as outlined here:

  1. Drag [Sub-Category Input Contains] dimension to the rows shelf and drag the sales measure to the text mark. Note: at first you will get only NULL because no value is chosen from the parameter. Change the NULL alias to something more meaningful like “Remaining sub-categories”.
  2. Add a quick table calculator for the sales measure as the percentage of total sales.
  3. Add column grand totals from the analytics pane.

Step 5: Build The dashboard

Add both sheets we created onto a single dashboard. Design them as you see fit.

Add the parameter [P.Sub-Category Input] to the dashboard.

Step 6: Create dashboard actions

After dragging the needed sheets to the dashboard. Now it is time to create two parameter actions.

1. Parameter List Action


Multiple select parameters in Tableau - setting up dashboard parameter actions


This parameter action feeds the parameter with the values clicked from the parameter list.



2. T|F Filter Action


Multiple Select Parameters: Dashboard filter action setup


This filter action is to automatically remove highlighting when selecting or deselecting values which will give the feeling of a button to the gantt bars of the parameter list.



Final Result

That's all! You should now have a dashboard that includes various selectable values. By clicking on one or more values from the parameter list, you can observe how the sub-category list automatically updates accordingly. You can also utilise this method to compare the sales numbers of sub-categories in a line chart.


Final dashboard with parameter list and sales table



When you click on the buttons, they become highlighted, serving as a colour legend. Clicking the same button again will deselect it and remove the colour. This enables us to have a dynamic parameter that supports multiple values.

Multi-select parameters are essential for Tableau. While they are not readily available, anyone can create them using sheets and parameter actions. Having multiple value parameters provides end users with more interactivity and freedom in selecting measures and dimensions.

Facts & figures

About client

Testimonial

Blogs you might also like

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

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

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

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

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

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

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

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

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

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?

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

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 apply conditional formatting to tooltips in Tableau

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

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

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

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)

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)

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)

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