1
votes

In Tableau 9.2, I currently have a parameter set up which contains multiple string values and an additional "All" value. I also have a calculated field which only contains the Str([some_field]) function. I have then dragged this calculated field into the "filters" pane and from there enabled "use all" and put the following formula under the "condition" tab:

// If All is selected, then do not filter
[my_filter_parameter] = 'All' OR 
// Otherwise, filter on the current parameter
[my_filter_parameter] = [my_calculated_Field]

After creating the calculated field for multiple sheets in my dashboard (which use different data sources all contain the common some_field), then I can change the parameter's value and it will filter all of the sheets at once.

My issue is that I need this to take on multiple values at once via a check-box. I understand that a parameter can only take on one value at a time, so I am wondering how I can do this without making the same filter for each individual sheet in the dashboard. Perhaps this can be done with a calculated field?

EDIT: I have tried the technique here to make a global filter via a control view. This allows me to use Ctrl+Clicking to select multiple values in some_field at once, however I still do not have a dropdown box. Alternatively, if anyone knows how to use this method with a dropdown box, then that would be another solution.

2
Based solely on what you have provided, there is no reason for a parameter. If you are only filtering on what is in the calculated field, you should filter on it directly. There is an option to include the All choice.Nick
Nicarus: This filter is to be applied to all sheets in the dashboard, so I am using a parameter to filter them all at once. If there is a way to do this without a parameter that doesn't require me to make a filter check box for each individual sheet in the dashboard, then I would be open to it.Paradox
Are the sheets using the same data source? If so, apply the filter to the relevant sheets - or all sheets in the data source.Nick
Not all of the sheets are the same data source, as per my question.Paradox

2 Answers

1
votes

If I am understanding your situation correctly, I have accomplished this using the following:

Create a calculated field and put the following code:

if [parameters].parametername = 'All' then true
elseif [parameters].parametername = FILTEREDCOLUMN then true
else false
end

Add that calculated field to the filters pane and select "True" - in other words, filter out any records where the calculated field is False. If the parameter you selected is "All" then all records will be True. Otherwise, it will only be True if the parameter matches the FILTEREDCOLUMN. I hope that helps.

1
votes

Parameter can pass only one value at a time ,i.e. Parameter Control will have Single Drop Down List.