2 answers
Parameters and filters are independent objects. A filter can’t directly push a value into a parameter. Parameters are static lists or single values that only change if:
- The user manually changes them (via a parameter control).
- A calculated field updates based on the parameter value.
- An action (like Parameter Action) updates them from a selection in the view.
Thus, we cannot make a filter automatically update a parameter value. But we can simulate this with Parameter Actions or Calculated Fields.
Workarounds
1.Parameter Actions
- Put the dimension you’re filtering on into a sheet.
- Create a parameter with the same domain.
- Add a Parameter Action so when the user clicks a value, it updates the parameter.
- Then use the parameter in calculations or filters.
2.Filter drives Parameter-like behavior
- Create a calculated field that references the filter’s field.
- Use that calculated field wherever you would have used the parameter.
- This way, the filter indirectly controls the result.
3.Dynamic Parameter (Tableau 2020.1+)
- You can set a parameter’s default value to update based on a field (like latest date, max week, etc.) when the workbook opens or refreshes.
- But note: it doesn’t update dynamically as the filter changes, only on data refresh.