This example will create a bar graph showing the total sales of user selected customers vs others. This uses the new Set Actions feature added in Tableau Desktop 2018.3
Step 1 - Create a Source sheet
This will be the sheet where the users will select customers from
- Drag [Customer Name] to the Rows shelf
- Drag [Sales] to the Columns shelf
- Drag a second copy of [Sales] to Label on the Marks card
Step 2 - Create the Target Sheet
- Right-click [Customer Name] in the data pane and select Create > Set…
- In the Create Set dialog, do the following and click OK:
- Give the set a name. In this example, the set is named "Selected Customers"
- Make sure there is at least one checked and one unchecked customer
- Drag [Selected Customers] to the Rows shelf.
- Right-click the word "In" in the view and select Edit Alias.
- In the Edit Alias dialog, type something like "Selected Customers" and click OK.
- Repeat steps 4&5 for "Out" and rename it "Other customers".
- Drag [Sales] to the Columns shelf
- Drag a second copy of [Sales] to Label on the Marks card.
Step 3 - Create the Dashboard
- Create a new dashboard and add the source and target worksheets
- Navigate to Dashboard > Actions…
- In the Actions dialog, click Add Action > Change Set Values…
- In the Add Set Action dialog, do the following:
- For Source Sheets, check only Source Sheet
- For Run action on, choose Select
- For Target Set, in the first drop-down select the data source being used
- For Target Set, in the second drop-down select Selected Customers
- For Clearing the selection will, select Remove all values from set
- Click OK twice to close all dialogs.