Parameterized Visual Analysis
Parameterized visual analysis lets you explore a business question by changing an input while keeping the workbook's analytical structure in place. In Tableau, you might let a manager choose a performance measure or adjust a planning assumption. The important design decision is what the input means and exactly which displayed results should respond to it.
Separate the input from its effect
A parameter is a workbook variable that holds one current value, such as a number, string, or date. Its allowable values define the choices it can accept; they are not multiple values selected simultaneously.
A parameter control is the interface through which a viewer changes that value. Showing a control makes the input accessible, but does not establish its analytical effect. You must connect the parameter to something the view uses, such as a calculated field.
For example, a measure selector can store either Revenue or Operating profit. A calculation reads the selection and returns the corresponding measure. The chart uses that calculation instead of a fixed measure. Simply naming the parameter Revenue does not connect it to a field with that name.
Choose meaningful values and controls
Start with the business decision, then choose a data type, allowable values, and a sensible current value. Use a string for named alternatives and a numeric type for a numeric assumption. Define units explicitly: a rate stored as a decimal fraction needs a clear percentage display or label.
Allowable values | Suitable use | Design consideration |
|---|---|---|
All | Open entry within the selected data type | Explain what constitutes a meaningful input. |
List | Approved alternatives | Ensure every listed value has a defined analytical effect. |
Range | A bounded numeric, date, or date-time assumption | Choose meaningful minimum, maximum, and step values. |
Available settings depend on data type; a string parameter does not support a numeric range. A list is useful when only certain scenarios are supported, because unrestricted entry can produce values the logic does not handle.
A list can distinguish its stored Value from its viewer-facing Display As label. Comparisons in a calculation use the stored value. For example, a stored value of std might appear as Standard shipping in the control; the calculation should test std.
Connect, communicate, and validate
Use the dependent calculated field in the actual view, then expose the control. Check the full chain when troubleshooting: did the current value change, did the calculation read it, and does the view use that calculation?
Parameters are available throughout a workbook. Worksheets referencing the same parameter therefore share its current value. This supports coordinated analysis, but independent comparisons need separate parameters and appropriately connected logic. Two visible controls for one parameter still change the same input.
Test every listed choice, or representative values and boundaries for a range. Confirm expected results, appropriate units, and which worksheets respond. For a what-if input, state the assumptions held fixed: changing a scenario input does not establish what customers or markets will actually do.
What to remember
- A parameter stores one current value; its control lets you change it.
- A view responds through an explicit dependency on that value.
- Allowable values, labels, units, and worksheet sharing are part of the analytical design.
Example: One selector for a regional performance dashboard
A retailer's Tableau data source contains exactly two records for a completed reporting period. All amounts are in USD, and no records are excluded from the view.
Region | Revenue, USD | Operating profit, USD |
|---|---|---|
North | 42000 | 6000 |
South | 28000 | 4000 |
A manager wants one chart that switches between regional revenue and regional operating profit. A total-value card should follow the same selection. The source field names are Revenue and Operating Profit.
a) Specify the parameter and its viewer control.
Create a string parameter named Performance Measure. Set Allowable values to List and enter Revenue and Operating profit as both the stored values and their display labels. Set the current value to Revenue.
Show the parameter control and give it a clear title such as Performance measure. The list supports the two intended alternatives and the parameter stores one selection at a time. Showing this control provides the input mechanism; the chart and card still need a dependency on it.
b) Connect the selection to both displayed results.
Create a calculated field named Selected Performance:
CASE [Performance Measure]
WHEN 'Revenue' THEN [Revenue]
WHEN 'Operating profit' THEN [Operating Profit]
ENDThe first branch returns each record's Revenue when the stored selection is Revenue. The second returns each record's Operating Profit when the stored selection is Operating profit. Both permitted values have a matching branch.
Use Region for the chart's categories and SUM of Selected Performance for its values. Use SUM of Selected Performance on the total-value card as well. Both views now depend on the same parameter, so one selection coordinates them.
Format both outputs in USD. Insert Performance Measure into the chart and card titles so that the displayed measure is identified when the viewer switches choices. The underlying source values remain unchanged.
c) Test both choices and state the expected results.
First choose Revenue. The calculation returns USD 42000 for North and USD 28000 for South. Because each region has one record, those are also the chart's regional totals. The card should show:
Next choose Operating profit. The calculation returns USD 6000 for North and USD 4000 for South. The chart should show these regional values, and the card should show:
Check that both titles identify the selected measure and that both outputs retain USD formatting. Finally, switch back to Revenue: the card should return to USD 70000. This checks both branches and confirms that the two views share the intended parameter dependency.
A parameter's data type specifies the kind of value it stores. Match each Tableau parameter data type to the business input it represents most directly, without encoding the input as another kind of value.
A calendar day, without a time-of-day component, marking a scenario's start
A numeric cost multiplier that can include fractional values such as 1.125
A logical true-or-false choice controlling whether a scenario is enabled
A whole-number count of future months to include in a forecast
Integer
Date
Float
Boolean
A delivery dashboard will use a Tableau string parameter named Service Level. Viewers must choose exactly one of Standard, Express, or Overnight. The workbook supports all three choices and no others. Which allowable-value configuration meets the requirement?