Tableau Parameter Filter: Dashboard How-To
In this article
To add a parameter filter to a Tableau dashboard, create a parameter, build a calculated field that compares your dimension to that parameter, place the calculated field on the Filters shelf, and then show the parameter control on the dashboard. This gives viewers an interactive way to switch what the dashboard displays without editing the workbook.
What You'll Need
- Tableau Desktop (any recent version) with a workbook open and at least one data source connected.
- A dimension you want to filter by, such as Region, Category, or a date part.
- Basic familiarity with the Data pane and the Filters shelf.
Step-by-Step
- Create the parameter. In the Data pane, click the drop-down arrow at the top and choose Create Parameter. Give it a clear name like Select Region. Set Data type to String (or Integer/Date if your dimension is numeric or a date). For Allowable values, choose List and add the dimension members you want viewers to pick from, or choose All and let them type a value. Set the current value to something sensible, then click OK. The parameter appears at the bottom of the Data pane.
- Build a calculated field. Right-click in the Data pane and choose Create Calculated Field. Name it something like Region Filter. Enter a formula that returns True when the row matches the parameter, for example:
[Region] = [Select Region]. If you want an "All" option, use a formula like[Select Region] = "All" OR [Region] = [Select Region]and include "All" in the parameter list. Click OK. - Add the calculated field to Filters. Drag the new calculated field onto the Filters shelf. In the dialog that appears, tick True and click OK. The view now shows only rows where the calculation is True.
- Show the parameter control. Right-click the parameter in the Data pane and choose Show Parameter. On a worksheet this displays the control on the right side; in a dashboard it appears as a card you can position.
- Add the sheet to the dashboard. Create a new dashboard or open an existing one, then drag your worksheet onto the dashboard canvas. The parameter control should appear automatically if it was shown on the worksheet; if not, right-click the parameter in the Data pane and choose Show Parameter while the dashboard is active.
- Position and format the control. Drag the parameter card to a convenient spot, such as the top or side. Use the drop-down on the card to choose a display style (compact, slider, or type-in) that suits the data type. For a string list, a compact drop-down usually works best.
- Test the interaction. Use the parameter control to pick different values and confirm that every sheet using the calculated field filter updates. If a sheet does not change, check that the calculated field is on that sheet's Filters shelf, not just on one worksheet.
Common Mistakes
- Filtering on the parameter directly. A parameter cannot be placed on the Filters shelf by itself; you must use a calculated field that references it.
- Forgetting to tick True. After adding the calculated field to Filters, the dialog defaults to showing all values. Select only True, or the filter has no effect.
- Applying the filter to only one sheet. Parameters are workbook-level, but the calculated field filter must be added to each sheet you want affected, or applied to all sheets using the same data source where appropriate.
- Mismatched data types. If the parameter is a string but the dimension is numeric, the comparison returns null and nothing filters. Match the data types or use a calculated conversion.
- Hiding the control. The parameter card can be accidentally removed from a dashboard layout; re-add it with Show Parameter.
Tips
- Name parameters and calculated fields clearly so viewers understand what the control does.
- Use an "All" member in the parameter list so viewers can reset the view without clearing the filter.
- For date filters, set the parameter data type to Date and use a calculated field such as
[Order Date] >= [Start Date]. - Keep the parameter card near the charts it controls; viewers should not have to hunt for it.
- Test on a dashboard, not only on worksheets, because card placement and sizing behave differently.
Troubleshooting
If the dashboard does not respond to the parameter, first confirm the calculated field is on the Filters shelf of every sheet that should change. Next, open the calculated field and check the formula for typos or data-type mismatches. If the parameter control is missing, right-click the parameter in the Data pane and choose Show Parameter. If values appear blank, verify that the parameter's allowable values match the dimension members exactly, including capitalization. If the filter works on one sheet but not another, the second sheet likely uses a different data source; add the calculated field there as well. Finally, if the control is greyed out, check that the workbook is not in a read-only state and that the parameter is not set to a type that conflicts with the calculation.
Frequently Asked Questions
Can I use a parameter to filter multiple dimensions at once?
Not directly with one parameter. Create separate parameters and calculated fields for each dimension, or use a parameter that drives a calculation combining conditions.
Why does my parameter filter show all values even after I select one?
The calculated field on the Filters shelf is probably set to show all values instead of only True. Reopen the filter dialog and tick only True.
Does the parameter filter work on published dashboards?
Yes, if the parameter control is included in the dashboard layout and the viewer has permission to interact with it. Test the published view to confirm.
Can I set a default value for the parameter?
Yes. In the parameter settings, set the Current value to the default you want viewers to see when the dashboard opens.
What is the difference between a parameter filter and a quick filter?
A quick filter lets viewers pick from actual dimension members and filters the view directly. A parameter filter uses a separate control and a calculated field, which is useful when you want a single control to drive multiple sheets or custom logic.