Skip to main content

Tableau Order of Operations

Tableau’s order of operations determines the order in which Tableau executes different commands and filters, which can have a huge impact on the visualization. It is important to understand the order of operations to ensure your visualization, and results, are correct and working as expected. 

For Tableau to run in the intended way, you might need to change how you execute certain commands. For example, if you want a dimension filter to take place before a fixed LOD, you could change it to a context filter. 

Tableau’s order of operations

  1. Extract Filters 
  2. Data Sources Filters 
    1. Both extract & data source filters limit the data before it enters Tableau. It is useful to use these filters when you have certain fields you know will not be needed in your analysis. 
  3. Context Filters, which determine which subset of data will be used in other filters and calculations. When you change a filter to a context filter, the other filters in the view then become dependent on that filter, meaning they will only filter the data that has already been filtered by the context filter. 
    1. Context filters are helpful when working with millions of records. For more information on how to apply them properly, visit the Tableau website.
  4. Sets, conditional filters, top N, and fixed LOD are conditional filters that allow you to filter data based on a condition or a set of conditions. Fixed level of detail expressions compute a value using the specified dimensions, without reference to the dimensions in the view. This means that they calculate a value at the data source level, which remains constant regardless of the filters (except filters that come before it in the order of operations) or other dimensions that are applied in the visualization.
  5. Dimension filters, which are regular filters that filter categorical data. 
  6. Include/Exclude LOD and data blending.
    1. Include level of detail calculations tell Tableau which fields to include in the level of detail. 
    2. Exclude level of detail calculations tell Tableau which fields to exclude in the level of detail. 
    3. Data blending is where data from a secondary source is aggregated and then blended with the primary source. 
  7. Measure filters, which influence continuous/numeric fields. 
  8. Forecasts, table calculations, clusters, and totals. 
    1. Forecasts allow you to predict future values based on historical data.
    2. Table calculations are a special kind of calculated field that computes on what is currently in the visualization, and do not consider anything that is filtered out. 
    3. Clusters are a way to group similar data points in the view using the k-means algorithm, which is an unsupervised machine learning algorithm. 
    4. Totals are aggregate values that provide a summary of your data.
  9. Table calculation filters are based on table calculations and do not filter the underlying data, instead they just modify the view. 
  10. Trend lines and reference lines

    1. Trend lines are used to show the general direction of the data over time or categories. 
    2. Reference lines are used to mark specific values, regions, or ranges on a continuous axis. 

     

10 items in Tableau Order of Operations depicted visually