The Tableau Performance Checklist: Filtering – Avoid Quick Filters That Drive Context Filters

Data

The Tableau Performance Checklist: Filtering – Avoid Quick Filters That Drive Context Filters

The Tableau Performance Checklist series is designed to help you streamline your dashboard performance and Tableau Server configuration. Each post expands upon one item listed in the master Tableau Performance Checklist.

The next item in our Filtering checklist is:

“Avoid quick filters or actions that drive context filters. These require reloading the context table and should be avoided wherever possible.”

There’s a lot to digest there, so let’s get started.

What Is a Context Filter?

The filters that you add to your visualization are each independently calculated, regardless of what the other filters are doing. You can add “context” to your filters by adding a context filter. Once you create a context filter, then all other filters are calculated using this new data set.

Context Filter 

Context filters are identified by their grey color on the Filter shelf.

Let’s take a hypothetical example of an insurance company with 50 million customers. That’s a massive number to use as a filter, but if we added a context filter for only 40-year old males, then Tableau will create a new context TEMP table with only those values.

All of the filters will access this new table to draw their values from the limited set of data. The goal of this context table is to make it as small as possible. If done correctly, it will improve performance.

The Problem

There’s the catch: “IF done correctly.” If the context filter selects everything or doesn’t sufficiently trim down the underlying data to a more manageable set in the new context table, it can create big performance problems.

Let’s take the example above with our insurance company and our customer data source of 50 million rows. Each time the visualization is loaded, Tableau will faithfully recreate this context table. If the context table is not only large but also wide, you can already see the massive performance load holding back the visualization.

The problems compound if you consider a Tableau Server with multiple users, each creating brand new 50 million-row context tables with numerous columns.

Optimizing Context Filters

We do not recommend using quick filters to drive context filters whenever possible. The reason for this is that for each quick filter, Tableau will query the appropriate data source to return the values for the quick filter. If the visualization uses a large context table, then it’s the double whammy of performance lag.

The first thing to consider when using a context filter is how to make the newly created TEMP table as small as possible. This might mean filtering rows based on a value as well as eliminating columns that are not needed for that particular visualization. Your goal should be to reduce the size of the data set down to one tenth of the original size at the minimum.

Mastering Best Practices

If you’re interested in becoming a Tableau Server guru, then learning these performance best practices is essential. Check back frequently as we add new posts and dive deeper into each point in the Tableau Performance Checklist

Another great way to identify best practices is to leverage the insights offered by our Performance Analyzer, part of Workbook Tools for Tableau. It will examine all of your workbooks, worksheets, dashboards and data sources against a list of best practices to ensure that you’re using all the tips and tricks to guarantee your visualizations are moving at light speed.

As always, feel free to get in touch with us if you have any questions regarding performance or anything Tableau related! We’d be happy to help.

Contact Us!

Want More The Tableau Performance Checklist

  1. The Tableau Performance Checklist
  2. The Tableau Performance Checklist: Data – Keep Analysis Simple
  3. The Tableau Performance Checklist: Data – Bring in Only Needed Data
  4. The Tableau Performance Checklist: Data – Use ‘Describe’ to Explore
  5. The Tableau Performance Checklist: Data – Remove Unused Columns from Extracts
  6. The Tableau Performance Checklist: Data – Use One TDS File
  7. The Tableau Performance Checklist: Data – Use Extracts
  8. The Tableau Performance Checklist: Filtering – Minimize Quick Filters
  9. The Tableau Performance Checklist: Filtering – Avoid ‘Only Relevant Values’ in Quick Filters
  10. The Tableau Performance Checklist: Filtering – Avoid High-Cardinality Quick Filters
  11. The Tableau Performance Checklist: Filtering – Avoid Quick Filters That Drive Context Filters
  12. The Tableau Performance Checklist: Filtering – Keep Range Quick Filters Simple
  13. The Tableau Performance Checklist: Filtering – Use Dashboard Filter Actions
  14. The Tableau Performance Checklist: Filtering – Don’t Be Lazy with User Filters
  15. The Tableau Performance Checklist: Custom SQL – Limit in Live Connections
  16. The Tableau Performance Checklist: Custom SQL – Avoid Parameters
  17. The Tableau Performance Checklist: Custom SQL – Watch for Useless Clauses
  18. The Tableau Performance Checklist: Calculations – Use Calculated Fields Carefully
  19. The Tableau Performance Checklist: Calculations – Limit Blended Calculations
  20. The Tableau Performance Checklist: Calculations – Avoid Row-Level Calculations Involving Parameters
  21. The Tableau Performance Checklist: Rendering – Avoid High Mark Counts
  22. The Tableau Performance Checklist: Rendering – Limit Text Tables With Lots of Marks
  23. The Tableau Performance Checklist: Rendering – Minimize Image & Shape File Sizes
  24. The Tableau Performance Checklist: Rendering – Use Transparent Background PNGs
  25. The Tableau Performance Checklist: Local Computations – Server Performance
  26. The Tableau Performance Checklist: Local Computations – Table Calculations
  27. The Tableau Performance Checklist: Dashboard Layout – Limit Number of Worksheets
  28. The Tableau Performance Checklist: Dashboard Layout – Fix Dashboard Size

More About the Author

Dustin Wyers

Analytics Consultant | Assist Lead
Highlights from TC19 Devs on Stage The keynote presentations at Tableau Conference are always exciting. It’s always nice to hear these data all-stars unveil the latest ...
Advance with Assist: Nested IF Calculations in Tableau Question: I’m needing to add multiple layers of logic in Tableau, but I don’t want multiple lines of AND options written out. How can I ...

See more from this author →

Subscribe to our newsletter

  • I understand that InterWorks will use the data provided for the purpose of communication and the administration my request. InterWorks will never disclose or sell any personal data except where required to do so by law. Finally, I understand that future communications related topics and events may be sent from InterWorks, but I can opt-out at any time.
  • This field is for validation purposes and should be left unchanged.

InterWorks uses cookies to allow us to better understand how the site is used. By continuing to use this site, you consent to this policy. Review Policy OK

×

Interworks GmbH
Ratinger Straße 9
40213 Düsseldorf
Germany
Geschäftsführer: Mel Stephenson

Kontaktaufnahme: markus@interworks.eu
Telefon: +49 (0)211 5408 5301

Amtsgericht Düsseldorf HRB 79752
UstldNr: DE 313 353 072