Can Parameters Have a Drop-Down List in Tableau?
The short answer is yes, you can absolutely create a drop-down list from a parameter in Tableau. In fact, it's one of the most common ways to give your audience control over a dashboard, allowing them to switch between views, change metrics, or highlight specific data points. The real question is whether you want that drop-down list to be static or dynamic.
This article will show you both. We'll walk through creating a standard drop-down parameter for fixed choices and then cover how to build one that automatically updates its list based on your data.
What Are Parameters in Tableau and Why Use Them?
Before jumping into the "how," it's helpful to understand the "what" and "why." A Tableau parameter is a user-driven variable that you can incorporate into your dashboards and worksheets. Think of it as a control knob that your audience can turn. Unlike a filter, which directly subsets your data, a parameter is a placeholder for a single value that doesn't do anything on its own. Its power comes from being connected to a calculated field, reference line, or set.
Common uses for parameters include:
Metric Swapping: Allowing users to switch a chart's measure between Sales, Profit, and Quantity.
"What-If" Scenarios: Letting users input a sales target to see how performance measures up against their hypothetical goal.
Top N Analysis: Creating a "show top 5," "show top 10," or "show top 20" control for a ranked list.
Dimension Highlighting: Enabling a user to select a specific region or product category to highlight in a chart.
The key difference between a parameter and a standard filter is that parameters are workbook-wide and can only hold one value at a time. Filters, on the other hand, are often worksheet-specific and can handle multiple selections.
How to Create a Standard Parameter Drop-Down List
Let's start with the most straightforward scenario: creating a drop-down list to switch the measure displayed in a bar chart. We will give the user the option to view total Sales, Profit, or Quantity over time.
For this example, we’ll use the Sample - Superstore dataset that comes with Tableau.
Step 1: Create Your Parameter
First, we need to build the parameter control itself. This is where we'll define the options that will appear in our drop-down.
Navigate to the Data pane on the left side of your screen. Right-click anywhere in the empty space and select Create Parameter.
The "Create Parameter" dialog box will open. Configure it with the following settings:
Name: Give it a clear name, like "Select a Measure."
Data type: Since our choices are text-based, select String.
Allowable values: Choose List. This is the crucial step for creating a drop-down menu.
Under "List of values," type your options. Hit enter after each one. For our example, enter:
Sales
Profit
Quantity
Click OK. You'll now see "Select a Measure" under the Parameters section in your Data pane.
Step 2: Create a Supporting Calculated Field
As mentioned, a parameter just holds a value. It needs to be linked to a calculation to actually do something. We'll create a calculated field that tells Tableau which measure to show based on the parameter's selected value.
Right-click in the Data pane again and select Create Calculated Field.
Name this calculation "Dynamic Measure."
Enter the following formula. A
CASEstatement is perfect for this, as it checks the parameter's current value and returns the corresponding measure:
This calculation essentially says: "If the 'Select a Measure' parameter says 'Sales', then show the sum of sales. If it says 'Profit', show the sum of profit," and so on.
Click OK.
Step 3: Build the Visualization and Show the Parameter Control
Now, we put it all together.
Drag Order Date onto the Columns shelf and set it to display Month.
Drag your new Dynamic Measure calculated field onto the Rows shelf.
In the Data pane, find your "Select a Measure" parameter, right-click it, and select Show Parameter.
A drop-down box will now appear in your view, typically on the top right. Click it, and you'll see "Sales," "Profit," and "Quantity." When you select one, the bar chart will update instantly to display that measure. You’ve successfully created an interactive chart with a parameter drop-down!
The Big Challenge: Static Parameter Lists
The method we just used is fantastic, but it has one major weakness: the list of values is static. We typed "Sales," "Profit," and "Quantity" manually. If a new measure becomes relevant, you'd have to edit the parameter by hand and add it to the list.
Imagine a different scenario where your drop-down list contains all your product categories. If your company launches a new product line tomorrow, your data source will update, but your Tableau parameter won’t. Your dashboard will be missing the new category, leading to incomplete analysis until someone remembers to update the parameter manually. This isn’t scalable and is bound to cause reporting errors.
The Holy Grail: Creating a Dynamic Parameter Drop-Down
For a long time, the only way to create a dynamic parameter involved complex workarounds. Thankfully, Tableau introduced the "Dynamic Parameters" feature starting in version 2020.1, making our lives much easier.
Let's build a parameter that provides a drop-down of all product sub-categories and automatically updates when a new one is added to the data.
Step 1: Create the Parameter Directly from Your Data Field
This new method lets you bootstrap the parameter directly from an existing field.
In the Data pane, find the dimension you want to use. In our case, it's Sub-Category.
Right-click on Sub-Category and select Create > Parameter.
Tableau automatically populates the parameter settings for you. It names it "Sub-Category Parameter," sets the data type to String, and fills the list with all the current sub-category values.
Step 2: Set the Parameter to Update on Workbook Open
This is where the magic happens. In the parameter dialogue box, you'll see a section called "When workbook opens." This is the key to making it dynamic.
Instead of "Current value," select the radio button for the field name (in this case, Sub-Category).
This tells Tableau: "Every time someone opens this workbook, check the 'Sub-Category' column in the data source and update this parameter's list of values with whatever you find."
Click OK.
Step 3: Write a Calculation to Filter the View
As before, the parameter needs a calculation to link it to the worksheet. We'll create a simple True/False calculation that checks if a sub-category in the data matches the one selected in the parameter.
Create a new calculated field and name it "Sub-Category Filter."
Enter this simple formula:
This formula returns "True" for all rows where the sub-category matches the parameter's selected value, and "False" otherwise.
Click OK.
Step 4: Use the Calculation as a Filter
The final step is to apply this calculation as a filter to control what the worksheet displays.
Build a simple view, for example, Sales by Product Name.
Drag your "Sub-Category Filter" calculation onto the Filters shelf.
A filter box will pop up. Check the box for True and click OK.
Finally, right-click your "Sub-Category Parameter" in the Data pane and select Show Parameter.
Now, your view will show the sales of products within the single sub-category you select from the drop-down. And most importantly, if your underlying data is refreshed and new sub-categories are added, they will automatically appear in your parameter's drop-down list the next time the workbook is opened.
Tips for Using Parameter Drop-Downs Effectively
Keep It User-Friendly: Name your parameters clearly. "Select a Sales Channel" is much better for your audience than "p _channel1."
Add an "(All)" Option: Users often want to see "everything." You can add an "(All)" option to your parameter list manually. To make it work in a calculation, you’d modify your filter like this:
[Sub-Category Parameter] = "(All)" OR [Sub-Category] = [Sub-Category Parameter]. This calculation will return 'True' for every row if "(All)" is selected, otherwise it evaluates the match like before.Consider Display Format: In the "Show Parameter" card on your dashboard, you can click the small downward arrow to change the display style. While a drop-down is great for lists with many items, radio buttons can be better for 2-4 options, and a slider might work best for numerical inputs.
Understand Refresh Behavior: Remember that Dynamic Parameters refresh when the workbook opens. If you are working with a live connection and new data comes in while the workbook is open, you will need to save, close, and reopen it to see the updated list in your parameter.
Final Thoughts
Creating drop-down interactions in Tableau with parameters opens up a new level of interactivity for your dashboards. Whether you use static lists for fixed choices or leverage dynamic parameters for lists that evolve with your data, you are empowering your audience to explore and find their own insights.
Mastering these techniques in tools like Tableau is a huge advantage, but sometimes you just need to get answers quickly without the manual setup. A lot of our users spend hours configuring interactive elements when they really just want an answer to a business question. Using an AI-powered tool like Graphed , we let you connect data sources and ask questions in plain English - "show me sales by sub-category for last quarter" - and instantly get live dashboards built for you.