The Context filter is a filter applied inside Tableau to restrict the further filters to only process data from the first filter. This concept of restricting access to data arose because all the filters in Tableau are independent filters, meaning whenever a filter is applied it will process all the data to produce the result. So, you could use context filters when you need to apply several filers in succession.
Let me explain the context filter in Tableau with an example:
- If you need to find out something specific like top 10 thriller genre books sold in a book shop.
- First fill the rows and columns. Here let’s take Sales as the column and sub-category (this contains all the books sold in that book shop) as rows.
- Next step right-click the sub-category field in the filter shelf and click on the tab named Top. Select by-field, and on successive drop-downs select “Top” “10” by “Sales” “Sum”.
- Then drag the dimension category to the filter shelf and select thriller, from the list. Now you could see several sub-categories of books that are sold under thriller.
- Finally, select the thriller category, and right-click to select Add to context. And now you could see your desired list of top 10 books sold under the thriller genre in your book store.
If you are interested in learning Tableau and aiming for clearing the Tableau Desktop Qualified Associate certification exam, then check out the Tableau certification course from Intellipaat.
Also, watch our YouTube video on Tableau training from our experts.