Context

Using Context is a way to add a hierarchy between the different Dimension filters. Consider the following example:

  1. Create a visualization with City in Rows and Sales in Columns. Add City in Filters and select the top five by Sales, as shown in the following screenshot:
  1. Add a quick filter for State (you can do this very easily by right-clicking on the field in the Data Source and selecting Show Filter).
  2. In the quick filter, select only the State of California. Tableau combines the two filters and looks for cities that are both in the top five and in California. As you can see in the following screenshot, there are only two remaining cities, Los Angeles and San Francisco
  1. Right-click on State on the Filters shelf and select Add to Context. The pill automatically turns gray and goes above the City pill.
  2. You can now select any State from the quick filter and see the top five cities in that State. Thanks to Context, Tableau first filters the states, then keeps the top five cities. Here's the final result: 

Context is a great way to put hierarchies between your different filters. To end this section about Filters, let's see the general hierarchies between different Filters.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
52.15.129.90