0
0
Tableaubi_tool~5 mins

Parameter controls in Tableau - Step-by-Step Guide

Choose your learning style9 modes available
Introduction
Parameter controls let you add interactive inputs to your Tableau dashboard. They help users change values like numbers or dates to see different views without changing the data source.
When you want users to select a specific year to filter sales data on a dashboard.
When you want to let users choose a target sales goal to compare actual sales against.
When you want to switch between different calculation methods like sum or average in a chart.
When you want to allow users to input a threshold value to highlight data points above it.
When you want to create a dynamic title that changes based on user input.
Steps
Step 1: Create a new parameter
- Data pane, right-click and select 'Create Parameter...'
The Create Parameter dialog opens where you can define the parameter's name, data type, and allowable values
💡 Choose a clear name that describes what the parameter controls
Step 2: Set parameter properties
- Create Parameter dialog
You define the data type (e.g., integer, string, date), allowable range or list of values, and current value
💡 Use a list of values for fixed options or a range for numeric inputs
Step 3: Click 'OK' to create the parameter
- Create Parameter dialog
The parameter appears in the Data pane under Parameters
💡 Parameters do not filter data by themselves; you must use them in calculations or filters
Step 4: Show the parameter control
- Right-click the parameter in the Data pane and select 'Show Parameter Control'
A control appears on the worksheet or dashboard allowing users to change the parameter value
💡 Place the control in a visible area on your dashboard for easy access
Step 5: Use the parameter in a calculated field
- Analysis tab > Create Calculated Field
You create a formula that uses the parameter value to change the data or calculation dynamically
💡 Example: IF [Sales] > [Target Parameter] THEN 'Above Target' ELSE 'Below Target' END
Step 6: Add the calculated field to your view or filter
- Drag the calculated field to Rows, Columns, Color, or Filters shelf
The view updates based on the parameter value users select
💡 Test different parameter values to see how the view changes
Before vs After
Before
Dashboard shows static sales data for all years with no user input options
After
Dashboard includes a parameter control allowing users to select a year, updating sales data dynamically for that year
Settings Reference
Data type
📍 Create Parameter dialog
Defines the kind of values the parameter can hold
Default: Integer
Allowable values
📍 Create Parameter dialog
Controls which values users can select or input
Default: All
Current value
📍 Create Parameter dialog
Sets the initial value shown when the parameter control appears
Default: First value or minimum in range
Display format
📍 Parameter properties after creation
Controls how the parameter value is shown to users
Default: Automatic
Common Mistakes
Creating a parameter but not using it in any calculation or filter
Parameters alone do not filter or change data; they must be referenced in calculations or filters to have effect
Always create a calculated field or filter that uses the parameter value to control the view
Setting parameter allowable values too broadly, like 'All' for a numeric range without limits
Users can enter unexpected values that break calculations or cause confusing results
Use a list or range with clear minimum and maximum values to guide user input
Placing the parameter control in a hidden or hard-to-find area on the dashboard
Users may not notice the control and miss the interactive feature
Place parameter controls in visible, logical spots with clear labels
Summary
Parameter controls let users interactively change values to update views dynamically.
You must create a parameter, show its control, and use it in calculations or filters.
Set clear data types and allowable values to guide user input and avoid errors.