Video | Tableau | Data visualisation | Analytics

An Introduction to order of operations in Tableau

In this video, I take on an important but little understood concept in Tableau.

Part of Tableau Key ConceptsTableau Level of detail functions
  • Tableau processes filters and calculations in a fixed sequence: extract filters first, then data source, context, sets, conditional and top N filters, then dimensional filters, LODs and finally trend and reference lines
  • A top N filter sits above dimensional filters in the order, so a state filter applied alongside it won't be respected before the top N is calculated
  • Moving a dimensional filter into a data source filter forces it to apply before the top N, but it removes those values from the entire data source
  • A context filter (shown greyed out) is the more flexible fix, applying before top N but only within the current sheet so other states remain available
  • Understanding the order of operations explains both wrong results and slow performance, since filters higher up the chain are computed earlier