How to Create a Drop-Down Menu in Tableau

Cody Schneider••8 min read

Building an interactive dashboard in Tableau is about giving your audience the power to answer their own questions, and a drop-down menu is one of the best ways to do it. Instead of creating multiple charts for different views, you can use a single, dynamic visualization that changes based on a user's selection. This article will walk you through, step-by-step, how to create powerful and space-saving drop-down menus in your Tableau dashboards.

GraphedGraphed

Build AI Agents for Marketing

Build virtual employees that run your go to market. Connect your data sources, deploy autonomous agents, and grow your company.

Watch Graphed demo video

Why Use a Drop-Down Menu in Your Dashboard?

Before diving into the "how," let's quickly touch on the "why." Drop-down menus, also known as parameter controls in Tableau lingo, offer a few major advantages for dashboard design and user experience:

  • Saves Prime Real Estate: Dashboards can get crowded fast. A drop-down menu lets you consolidate multiple views into a single chart. Instead of three separate timelines for sales, profit, and quantity, one chart can display all three with a simple selector.
  • Improves User Interactivity: Static charts are informative, but interactive ones are engaging. Giving users control encourages them to explore the data for themselves, making discoveries and gaining a deeper understanding along the way.
  • Streamlines the Narrative: A drop-down can guide your user's analysis. You get to control which metrics or categories are available for comparison, keeping the analysis focused and preventing users from getting lost in too many options.

The Building Blocks: Parameters and Calculated Fields

To create a dynamic drop-down selector in Tableau, you need to understand two core components that work together: Parameters and Calculated Fields.

What is a Parameter?

Think of a parameter as a variable a user can control. It's a placeholder value - like a specific date, a number, or a text string - that you, the creator, define. The key feature is that the dashboard viewer can change this value on the fly using a control, such as a slider, a text box, or, in our case, a drop-down list. By itself, a parameter does nothing. It's just a value. To make it functional, you have to connect it to your visualization, which is where calculated fields come in.

Free PDF · the crash course

AI Agents for Marketing Crash Course

Learn how to deploy AI marketing agents across your go-to-market — the best tools, prompts, and workflows to turn your data into autonomous execution without writing code.

What is a Calculated Field?

A calculated field is exactly what it sounds like: a new field you create by performing a calculation or manipulation of your existing data. You can do simple math (like Profit / Sales to get Profit Ratio) or use more complex logic with functions. In the context of creating a drop-down menu, our calculated field will use an IF or CASE statement to tell Tableau, "Hey, when the user selects 'Sales' from the parameter drop-down, I want you to show me the SUM of Sales."

Together, the parameter captures the user's choice, and the calculated field executes that choice within the chart.

How to Create a Metric-Swapping Drop-Down Menu

One of the most common use cases for a drop-down is allowing users to switch between different key performance indicators (KPIs) or metrics within the same chart. Let’s build a line chart that allows the user to switch between viewing total Sales, Profit, and Quantity over time. We'll use the sample "Superstore" dataset that comes with Tableau for this example.

Step 1: Create the Parameter

First, we need to create the list of options that will appear in our drop-down.

  1. In the Data pane (on the left side of your screen), click the small drop-down arrow at the top right and select Create Parameter.
  2. A configuration window will pop up. Let's fill it out:
  3. Your configuration should look something like this. Once you're done, click OK.

You’ll now see your new parameter, "Select a Metric," at the bottom of the Data pane under a "Parameters" section.

Step 2: Create the Linking Calculated Field

Now we create the logic that connects our user's selection to the data.

  1. Click the same drop-down arrow in the Data pane and this time select Create Calculated Field.
  2. Name this field something descriptive, like Dynamic Metric.
  3. In the formula box, we’ll write a CASE statement. A CASE statement is a clean way to check the current value of our parameter and return the corresponding data field.

Enter the following formula:

CASE [Select a Metric]
WHEN "Sales" THEN [Sales]
WHEN "Profit" THEN [Profit]
WHEN "Quantity" THEN [Quantity]
END

Let’s break that down: The formula tells Tableau to look at the [Select a Metric] parameter. When the selected value is "Sales", it should return the values from the [Sales] field. When it's "Profit", it returns the values from the [Profit] field, and so on. Click OK.

You will now see your new calculated field, [Dynamic Metric], in the Data pane under the "Measures" section.

GraphedGraphed

Build AI Agents for Marketing

Build virtual employees that run your go to market. Connect your data sources, deploy autonomous agents, and grow your company.

Watch Graphed demo video

Step 3: Build the Visualization

This part is just like building any other chart in Tableau, but instead of using a standard measure like SUM(Sales), we'll use our new calculated field.

  1. Drag Order Date onto the Columns shelf. Right-click it and choose "Month" (the continuous version with the solid green icon) to get a nice time-series view.
  2. Drag your new calculated field, Dynamic Metric, onto the Rows shelf. It will likely default to SUM(Dynamic Metric), which is what we want.

You'll see a line chart appear. But how do we control it? That's the final piece of the puzzle.

Step 4: Show the Parameter Control

You've built all the backend logic, now you just need to make the control visible to the user.

  1. In the Data pane, find your parameter Select a Metric.
  2. Right-click on it and choose Show Parameter.

A small box with a drop-down menu will appear in your view, usually on the right side. Click the drop-down, and you’ll see the three options you defined: Sales, Profit, and Quantity. Select one, and watch your line chart magically update to reflect your choice! You've successfully created an interactive, metric-swapping chart.

Advanced Use: Swapping Dimensions with a Drop-Down

The same principle can be applied to swapping Dimensions, not just Measures. This is incredibly useful for bar charts. For example, maybe you want to see sales broken down by Region, Category, or Segment without creating three different charts.

The process is nearly identical.

  1. Create a Parameter: Name it Select a Dimension. Set the Data Type to String and choose List for Allowable values. This time, add "Region", "Category", and "Segment" to your list.
  2. Create a Calculated Field: Name it Dynamic Dimension. The CASE statement is very similar:
CASE [Select a Dimension]
WHEN "Region" THEN [Region]
WHEN "Category" THEN [Category]
WHEN "Segment" THEN [Segment]
END
  1. Build the Viz: Drag your new Dynamic Dimension calculated field onto the Columns shelf. Drag Sales onto the Rows shelf. This will create a bar chart.
  2. Show the Parameter: Right-click on your Select a Dimension parameter and select Show Parameter.

Now you have a single bar chart that can be switched to show sales by region, category, or segment using a drop-down. This significantly cleans up a dashboard and allows for much deeper, user-driven exploration of the data.

Free PDF · the crash course

AI Agents for Marketing Crash Course

Learn how to deploy AI marketing agents across your go-to-market — the best tools, prompts, and workflows to turn your data into autonomous execution without writing code.

A Quick Note on Multi-Select Drop-Downs

It's important to understand that parameters in Tableau are single-select only. A user can choose "Sales" or "Profit," but not both at the same time. If you need multi-select functionality, you’re looking for a Filter, not a parameter.

To create a multi-select drop-down feel, simply drag a dimension (like Region) to the Filters card. Then, right-click the filter in the view and change its display option. Choose Multiple Values (dropdown). This will give you a drop-down with checkboxes, allowing users to select several options at once. Just remember: filters subset the data, while parameters change the very structure of the chart.

Dashboard Integration and Best Practices

Once you’ve built your interactive chart, placing it on a dashboard is simple. But to make it professional and user-friendly, consider these tips:

  • Placement is Important: Place your drop-down controls in an intuitive location, usually at the top-left or top-right of the dashboard where users expect to see filter menus.
  • Use Descriptive Titles: Make sure the title of your parameter control clearly explains what it does, like "Choose a Metric to Display." You can edit this by clicking the little dropdown on the parameter card itself and choosing "Edit Title."
  • Keep it Clean: The power of a drop-down is its simplicity. Avoid overloading it with too many options. If you have more than 10-15 choices, it might be a sign that a different type of visualization or multiple charts would be a better solution.

Final Thoughts

Mastering parameters and calculated fields unlocks a new level of dashboard interactivity in Tableau. By linking a user's choice to a CASE statement, you can create dynamic charts that swap metrics or dimensions on command, saving space and empowering your audience to explore data on their own terms.

Building these interactive elements is powerful, but it involves a learning curve and can still be time-consuming. We built Graphed because we believe getting insights shouldn’t require you to become an expert in specific tools. Instead of manually creating parameters and writing formulas, you can simply ask for what you need in plain English - like "create a line chart over time showing sales, and let me switch between sales, profit, and quantity." We handle all the technical work in the background, generating a live, interactive dashboard for you in seconds. It allows your entire team to ask deeper questions and get answers instantly, without ever leaving the conversation.

Related Articles