Parameter Actions in Tableau
Course: Tableau Training | Topic: Parameter Actions and Interactive Dashboard Development
Training Link: JustAcademy Tableau Training
Course Demo: Register for a Tableau Course Demo
1. Introduction to Parameter Actions
Parameter Actions in Tableau allow users to change a parameter value by interacting directly with a visualization. Instead of manually changing a parameter through a dropdown or input control, users can hover over, select, or open the menu for a mark in a chart to trigger an action.
A parameter action connects a user interaction in a source worksheet to a target parameter. The parameter can then be used in calculated fields, reference lines, filters, and other supported Tableau features to create an interactive analytical experience.
Example
Suppose you have a sales dashboard showing sales by region. You create a parameter called Selected Region. When a user clicks the West region, a parameter action updates Selected Region to West. A calculated field can then use that parameter to display additional information about the selected region.
- Click a region to update a parameter.
- Use the parameter in a calculated field.
- Update a related chart or reference line.
- Display details based on the selected mark.
2. What Is a Parameter in Tableau?
A parameter is a workbook variable that stores a single value, such as a string, number, date, or other supported data type. It can be used in calculations, filters, reference lines, and other features.
| Parameter Type |
Example |
Possible Purpose |
| String |
West |
Choose a region or category |
| Integer |
10 |
Set a Top N threshold |
| Float |
50000.0 |
Set a numeric threshold or target |
| Date |
2026-01-01 |
Set a selected date for analysis |
| Boolean |
True or False |
Control supported conditional logic |
A parameter stores a value, but it does not automatically change a chart by itself. It must be referenced by a calculation or another supported feature, and its value must be changed through a parameter control, parameter action, or another supported mechanism.
3. What Is a Parameter Action?
A parameter action is an interactive Tableau action that assigns a value from a selected or hovered mark to a target parameter. The action defines which sheet supplies the value, what interaction triggers it, which parameter is updated, and what happens when the selection is cleared.
Parameter actions are useful when the user should be able to explore a visualization directly instead of repeatedly changing a separate parameter control.
Basic workflow
User interacts with a chart mark
|
v
Parameter action is triggered
|
v
Value from the source field is passed
|
v
Target parameter changes
|
v
Calculations or reference lines use the new value
|
v
Related visualization updates
4. Why Use Parameter Actions?
- Interactive analysis: Users can change parameter values by interacting with marks in a chart.
- Dynamic calculations: Selected values can drive calculations used in a visualization.
- Dynamic reference lines: A selected mark can define a target or threshold.
- Dashboard navigation and exploration: One view can provide input for another analytical view.
- Flexible comparisons: Users can select a value to compare against other data.
- Less manual input: Users can select data points instead of typing values into a control.
- Richer dashboards: A dashboard can respond to the user's analytical choices.
5. Parameter Actions vs. Parameter Controls
| Feature |
Parameter Control |
Parameter Action |
| How the value changes |
User selects or enters a value in a control |
User interacts with a mark in a visualization |
| Interaction |
Dropdown, list, slider, or input control, depending on the parameter |
Hover, Select, or Menu trigger |
| Best use |
Manual selection or direct value entry |
Visual exploration and context-driven selection |
| Source of value |
User input |
Field value from the source view |
| Example |
Select West from a dropdown |
Click the West bar in a chart |
Both approaches can be used in the same workbook. A parameter control is often useful for explicit input, while a parameter action is useful when the data visualization itself should drive the selection.
6. Parameter Action Trigger Types
When creating a parameter action, Tableau lets you choose how users trigger it.
| Trigger |
How It Works |
Example |
| Hover |
The action runs when the user hovers over a mark. |
Hover over a point to update a threshold parameter. |
| Select |
The action runs when the user selects one or more marks. |
Click a region to display its details. |
| Menu |
The action is available through a mark's context menu or tooltip menu. |
Choose an action to update a selected comparison value. |
Important: Hover actions may update a parameter frequently as the pointer moves across marks. Use them when this behavior is intentional. Select actions are often easier to control when users should explicitly choose a mark.
7. Practical Example 1: Update a Selected Region
Objective: Let users select a region in one chart and use the selected region to update another view.
Step 1: Prepare the data
- Open Tableau Desktop or another supported Tableau authoring environment.
- Connect to Sample Superstore, if available.
- Open a new worksheet and rename it Region Selector.
- Drag Region to Rows.
- Drag Sales to Columns.
- Use a bar chart to display sales by region.
Step 2: Create the parameter
- In the Data pane, open the dropdown menu and choose Create Parameter.
- Name the parameter Selected Region.
- Set Data Type to String.
- Choose a suitable current value, such as West.
- For a simple example, set Allowable Values to All, or use a list of known region names.
- Click OK.
Step 3: Create a calculated field
Create a calculated field called Selected Region Sales.
IF [Region] = [Selected Region] THEN [Sales]
END
This row-level calculation returns Sales for records matching the selected region and NULL for records that do not match. Add an appropriate aggregation when using the field in a view, such as SUM([Selected Region Sales]).
Step 4: Create a detail worksheet
- Create a new worksheet called Region Details.
- Drag Category to Rows.
- Drag SUM([Selected Region Sales]) to Columns.
- Choose a bar chart.
- Optionally add labels and sort the categories.
The detail view can now show sales for the selected region. The parameter action will update which region is selected.
Step 5: Add both worksheets to a dashboard
- Create a new dashboard.
- Add the Region Selector worksheet.
- Add the Region Details worksheet.
- Arrange them so users can easily select a region and view its category-level details.
Step 6: Create the parameter action
- Open the dashboard.
- Select Dashboard > Actions.
- Click Add Action > Change Parameter.
- Name the action Select Region.
- Choose Region Selector as the source sheet.
- Set Run action on to Select.
- Under Target Parameter, choose Selected Region.
- Under Source Field, choose Region.
- Ensure the parameter data type and source field values are compatible.
- For clearing the selection, choose an appropriate behavior such as Keep current value or Set value to a chosen default.
- Click OK to save the action.
Step 7: Test the action
Click a region in the Region Selector worksheet. The Selected Region parameter should update to the chosen region, and the Region Details worksheet should recalculate because its calculation references that parameter.
Expected result: Selecting West updates the detail view to show sales by category for West. Selecting East changes the detail view to East, and so on.
8. Practical Example 2: Dynamic Reference Line
Objective: Allow a user to select a data point and use its value as a reference line in a chart.
Scenario
A sales analyst wants to click a mark and use its sales value as a comparison threshold for other marks in the visualization.
Step 1: Create a parameter
- Name: Selected Sales Threshold
- Data Type: Float
- Current Value: Choose a suitable starting value, such as 0
- Allowable Values: All
Step 2: Build a chart
- Create a worksheet with Region on Rows and SUM(Sales) on Columns.
- Choose a bar chart.
- Ensure Sales is available as the source field for the action.
Step 3: Add a reference line
- Open the Analytics pane.
- Drag a reference line into the desired scope, such as the entire table.
- Configure the reference line to use the Selected Sales Threshold parameter as its value, where supported by the reference-line configuration.
- Choose a useful label and line style.
Step 4: Create the parameter action
- Choose Worksheet > Actions, or Dashboard > Actions if working from a dashboard.
- Select Add Action > Change Parameter.
- Name the action Update Sales Threshold.
- Select the chart worksheet as the source.
- Set Run action on to Select.
- Choose Selected Sales Threshold as the target parameter.
- Choose Sales as the source field and select the appropriate aggregation, such as SUM, to match the intended mark value.
- Choose the behavior for clearing the selection.
- Save and test the action.
Expected result: Selecting a bar updates the threshold parameter and moves the reference line to the selected sales value. Check that the source field and aggregation correspond to the value represented by the selected mark.
9. Practical Example 3: Top N Selection
Objective: Let users select a number in a chart or selector and use a parameter to control how many top categories are displayed.
Step 1: Create a parameter
- Name: Top N
- Data Type: Integer
- Allowable Values: Range, such as 1 to 20
- Current Value: 5
Step 2: Create a rank calculation
RANK(SUM([Sales]), 'desc')
Name the field Sales Rank. Depending on the visualization, configure the table calculation to compute using the dimension being ranked.
Step 3: Create a Top N filter calculation
[Sales Rank] <= [Top N]
Name the calculation Show Top N. Place it on Filters and keep True. Verify that the rank calculation is computed using the correct dimension and that the filter behaves as intended in the view.
Step 4: Create an action to update Top N
To update the Top N parameter from marks in a view, create a source worksheet whose marks contain a numeric field representing the desired N value. Configure a Change Parameter action that maps that numeric source field to Top N. Ensure the source values are valid for the parameter.
Alternative: If users simply need to enter a number, showing the Top N parameter control is often simpler. A parameter action is most useful when a numeric choice is represented by a mark in a visualization.
10. Practical Example 4: Select a Measure Through a Chart
Parameter actions can also support measure-selection experiences when the source view provides a field whose values match the allowable values of a parameter.
For example, a selector worksheet could contain labels such as Sales, Profit, and Quantity. A parameter action can update a string parameter called Select Measure based on the selected label. A calculated field can then use the parameter to return the chosen metric.
Example calculated field
CASE [Select Measure]
WHEN "Sales" THEN SUM([Sales])
WHEN "Profit" THEN SUM([Profit])
WHEN "Quantity" THEN SUM([Quantity])
END
Implementation note: The source field for the parameter action must contain compatible values such as Sales, Profit, or Quantity. A measure selector worksheet usually requires a deliberate selector design; a parameter action cannot infer the name of a measure from an unrelated mark automatically.
11. Understanding Source Sheets and Target Parameters
| Setting |
Meaning |
Example |
| Source Sheet |
The worksheet whose marks trigger the action |
Region Selector |
| Run Action On |
Defines the interaction that triggers the action |
Select |
| Target Parameter |
The parameter whose value will change |
Selected Region |
| Source Field |
The field value passed into the parameter |
Region |
| Aggregation |
How values from multiple selected marks are combined when an aggregation is used |
SUM(Sales) or AVG(Sales) |
| Clearing Selection |
Defines what happens when a selection is cleared |
Keep current value |
The source field and target parameter must have compatible data types. For example, a text field containing region names should generally be mapped to a String parameter, while a numeric sales field should be mapped to a numeric parameter.
12. Aggregation in Parameter Actions
When users can select multiple marks, Tableau may need to aggregate the selected source-field values into one parameter value. The aggregation determines how those values are combined.
| Aggregation |
Meaning |
Possible Use |
| SUM |
Adds the selected numeric values |
Total sales across selected marks |
| AVG |
Calculates the average |
Average sales value for selected marks |
| MIN |
Returns the minimum value |
Lowest selected threshold |
| MAX |
Returns the maximum value |
Highest selected threshold |
| COUNT |
Counts values |
Count of selected records or values, according to the configured field |
| COUNTD |
Counts distinct values |
Distinct entity counts where supported by the configuration |
| None |
Does not aggregate multiple source values into one value |
Appropriate when a single compatible value is selected |
Important: If multiple marks with different source-field values are selected and Aggregation is set to None, the parameter action may not run. Choose an aggregation when the intended interaction permits selecting multiple marks. The aggregation used by the action can differ from the aggregation shown in the worksheet, so configure it deliberately.
13. Clearing a Selection
Tableau lets you choose what happens when the user clears a selection that triggered a parameter action.
- Keep current value: The parameter retains its most recently assigned value.
- Set value to: The parameter changes to a specified value when the selection is cleared.
For example, if Selected Region is set to West and the user clears the selection, Keep current value preserves West. Set value to could return the parameter to East or another configured default, provided that value is appropriate for the parameter.
14. Parameter Actions vs. Filter Actions vs. Set Actions
| Action Type |
Purpose |
Example |
| Parameter Action |
Changes a parameter value based on interaction with marks |
Select a bar to update a threshold parameter |
| Filter Action |
Filters data in a target view based on selected marks |
Select a region to filter a detail chart |
| Highlight Action |
Highlights related marks without necessarily filtering them out |
Highlight one product category across views |
| Set Action |
Changes the members of a set based on selection |
Select customers to define a comparison group |
| Go to URL Action |
Opens a web page or another URL |
Open product details in a web page |
| Go to Sheet Action |
Navigates to another worksheet, dashboard, or story |
Open a detailed analysis view |
Choose the action type according to the required behavior. Use a parameter action when the value itself must change and then drive a calculation or other parameter-dependent feature.
15. Common Errors and Troubleshooting
| Problem |
Possible Cause |
Solution |
| Parameter does not change |
Action is not configured or the wrong source sheet is selected |
Review Dashboard > Actions or Worksheet > Actions |
| Action does not trigger |
Wrong trigger type or source marks are not being selected |
Check Hover, Select, or Menu and test the source worksheet |
| Target parameter receives an invalid value |
Source field and parameter data types are incompatible |
Match the parameter data type to the source field |
| Nothing changes in the target chart |
The parameter is not referenced by the target view |
Use it in a calculated field, reference line, filter, or other supported feature |
| Multiple selection does not work |
Aggregation is None or the selected values cannot be combined as configured |
Choose an appropriate aggregation or select one mark at a time |
| Reference line stays unchanged |
The reference line is not configured to use the parameter |
Review the reference-line settings and parameter reference |
| Parameter resets unexpectedly |
The clearing-selection behavior is configured to set a value |
Review the Clear Selection setting |
| Action updates the wrong view |
Incorrect source sheet or dashboard scope |
Check the selected source sheets and dashboard configuration |
| Top N calculation gives unexpected results |
Rank computation or level of detail is incorrect |
Review Compute Using, sorting, and filter behavior |
16. Best Practices for Parameter Actions
- Give parameters, actions, and calculated fields meaningful names.
- Use a trigger type that matches the desired interaction.
- Keep the source field and target parameter data types compatible.
- Verify that the parameter is used by a calculation or visualization element.
- Choose an appropriate aggregation for multiple selected marks.
- Configure clearing-selection behavior intentionally.
- Use a visible tooltip or instruction so users know which marks can be selected.
- Test the action in the dashboard, not just in an isolated worksheet.
- Check every source sheet included in the action.
- Keep the interaction simple and predictable.
- Document any non-obvious calculations or aggregation rules.
- Verify the behavior after publishing to the intended Tableau environment.
17. Real-World Applications
| Industry |
Parameter Action Example |
Business Benefit |
| Retail |
Select a product category to update a comparison threshold |
Explore product performance interactively |
| Banking |
Select a branch to update a target value |
Compare branch performance against a selected benchmark |
| Healthcare |
Select a department to update a detail view |
Explore departmental metrics |
| Education |
Select a course or department to change an analysis parameter |
Compare course-level performance |
| Logistics |
Select a delivery region to set a threshold |
Investigate regional shipping performance |
| Marketing |
Select a campaign mark to update a comparison metric |
Explore campaign results |
18. Mini Project: Interactive Sales Analysis Dashboard
Project Objective: Create a Tableau dashboard where clicking a region updates a parameter and changes a related sales analysis view.
Project Requirements
- Use a dataset containing Region, Category, Sales, and Profit.
- Create a Selected Region String parameter.
- Create a Region Selector bar chart.
- Create a calculated field that uses the Selected Region parameter.
- Build a Region Details worksheet.
- Place both worksheets on a dashboard.
- Create a Change Parameter action using Region as the source field.
- Configure the selection-clearing behavior.
- Test each region and confirm that the detail view updates correctly.
Expected Outcome
The dashboard should allow users to click a region and view related sales details without manually changing a parameter control. The source chart supplies the selected value, and the target worksheet responds through its parameter-dependent calculation.
Project Extensions
- Use a numeric parameter to update a dynamic reference line.
- Use a parameter action to select a threshold from a chart.
- Build a Top N analysis with a numeric parameter.
- Add a dynamic title that identifies the selected region.
- Compare parameter actions with filter actions and document when each is more suitable.
19. Practice Exercises
- Define Parameter Actions in Tableau in your own words.
- Create a Region Selector worksheet using Sample Superstore.
- Create a Selected Region parameter.
- Create a calculated field that returns Sales only for the selected region.
- Configure a Change Parameter action that updates Selected Region when a mark is selected.
- Explain the difference between Hover, Select, and Menu triggers.
- Create a numeric parameter action that updates a reference line.
- Explain why the target visualization must reference the parameter for it to affect the view.
- Describe what happens when multiple marks are selected and Aggregation is set to None.
- Compare Parameter Actions with Filter Actions.
20. Practice Exercise Answers
Answer 1: Definition
A Parameter Action changes a parameter value in response to an interaction with a visualization, such as hovering over or selecting a mark.
Answer 2: Region Selector
Place Region on Rows and SUM(Sales) on Columns, then choose a bar chart.
Answer 3: Selected Region parameter
Create a String parameter called Selected Region. Use a valid region name as the current value.
Answer 4: Calculated field
IF [Region] = [Selected Region] THEN [Sales]
END
Use SUM of the calculated field in the target view to display sales for the selected region.
Answer 5: Change Parameter action
Open Dashboard > Actions > Add Action > Change Parameter. Select the source sheet, choose Select as the trigger, map Region to Selected Region, configure clearing behavior, and save.
Answer 6: Trigger types
Hover runs when the pointer moves over a mark, Select runs when a mark is selected, and Menu makes the action available through a mark's menu or tooltip menu.
Answer 7: Reference line
Create a numeric parameter, configure a reference line to use it, and create a parameter action that passes an appropriate numeric source-field value into that parameter.
Answer 8: Parameter dependency
A parameter stores a value but does not automatically affect every worksheet. A calculation, reference line, filter, or another supported feature must reference it.
Answer 9: Multiple selections
If Aggregation is None and selected marks contain different source-field values, the parameter action may not run. Choose an appropriate aggregation when multiple selections should be combined.
Answer 10: Parameter Action vs. Filter Action
A parameter action changes a parameter value that can drive calculations or reference lines. A filter action filters the target view based on selected marks.
21. Tableau Interview Questions and Answers
Q1. What are Parameter Actions in Tableau?
Answer: They allow users to change parameter values through direct interaction with marks in a visualization.
Q2. What is the purpose of a parameter action?
Answer: It makes a parameter respond to data selections so that calculations, reference lines, or other parameter-dependent elements can update dynamically.
Q3. What trigger types are available?
Answer: Hover, Select, and Menu.
Q4. What is a target parameter?
Answer: It is the parameter whose value the action updates.
Q5. What is a source field?
Answer: It is the field whose value is passed from the source visualization into the target parameter.
Q6. Why must the source field and target parameter be compatible?
Answer: The action must be able to assign the source value to the parameter. Incompatible data types or values can prevent the intended behavior.
Q7. Can a parameter action update a reference line?
Answer: Yes. A numeric parameter can be connected to a reference line, and an action can update the parameter based on a selected mark's numeric value.
Q8. What happens when a selection is cleared?
Answer: Depending on the action settings, the parameter can retain its current value or be set to a specified value.
Q9. Why is aggregation important?
Answer: When multiple marks are selected, aggregation can combine their source values into one parameter value. Without an appropriate aggregation, the action may not run for different selected values.
Q10. Can a parameter action replace every filter action?
Answer: No. A parameter action changes a parameter, while a filter action filters data in a target view. They solve different problems.
Q11. What is a common reason a parameter action appears not to work?
Answer: The parameter may not be referenced by the target visualization, or the source sheet, trigger, source field, or target parameter may be configured incorrectly.
Q12. Can multiple parameter actions exist in one workbook?
Answer: Yes. Multiple actions can be created for different purposes, provided their configuration and interactions are designed appropriately.
22. Quick Revision Checklist
- Understand parameters and parameter actions.
- Know the difference between parameter controls and parameter actions.
- Understand Hover, Select, and Menu triggers.
- Create a source visualization containing the field to pass to the parameter.
- Create a compatible target parameter.
- Configure the Change Parameter action.
- Choose an appropriate aggregation for multiple selected marks.
- Configure clearing-selection behavior.
- Use the parameter in a calculation or another supported visualization feature.
- Test the action in the complete dashboard.
- Understand how parameter actions differ from filter and set actions.
23. Conclusion
Parameter Actions make Tableau dashboards more interactive by allowing users to change parameter values directly through visualizations. They can drive calculations, dynamic reference lines, selected-value comparisons, and other analytical experiences. To build reliable parameter actions, choose a suitable source sheet and trigger, map a compatible source field to the target parameter, configure aggregation and clearing behavior, and ensure that the target view uses the parameter.
For more learning opportunities, visit JustAcademy Tableau Training or Register for a Tableau Course Demo.
24. Additional Learning Resources