Understanding Tableau Order of Operations (aka Query pipeline)

OmniView.
8 min readJan 1, 2024

--

In the world of Tableau, filters are the architects of data precision. Let’s unravel the intricacies of Tableau’s Order of Operations (also coined the Query Pipeline) and try to better understand how to access each individual component and what sets it apart from the rest!

The Order of Operations in Tableau are essentially a funnel-based system. As data flows from the top towards the bottom via each subsequent step, data is filtered. As a reslult, there will always be less records downstream than upstream, if not the same. If you’re filtering data out at higher levels, it certainly won’t make it to the more granular levels.

1. Extract Filters

Access:

Located at the initial stages of data processing, Extract Filters act as the guardians of your data extraction process. They can be accessed during the initial data connection setup.

Distinctions:

  • On Extraction: These filters determine which subset of data will be extracted from your data source into Tableau.
  • Data Source Level: Extract Filters are specific to the data extraction process and operate at the data source level, allowing you to tailor what data gets pulled into your Tableau environment.

2. Data Source Filters

Access:

Data Source Filters come into play once your data is inside Tableau. You can access them through the Data Source tab, usually found on the left side of your Tableau interface.

Distinctions:

  • Post-Extraction: Unlike Extract Filters, Data Source Filters operate on the data that’s already imported into Tableau.
  • Global Impact: These filters have a global effect, influencing all worksheets and dashboards that use the same data source. They are applied consistently across your Tableau project.

3. Context Filters

Access:

Context Filters are accessed directly within your worksheet. Right-click on a field in the Filters shelf, and you’ll find the option to set it as a context filter.

Distinctions:

  • Scoped Analysis: Context Filters enable you to narrow your analysis to a specific context or subset of data without modifying the original data source or affecting other worksheets.
  • User-Defined Context: Users have the flexibility to define and refine the context based on the analytical requirements, providing a dynamic and adaptable approach to data scrutiny.

4. Dimension Filters

Access:

Dimension Filters are accessed by dragging a dimension onto the Filters shelf, typically found on the left side of your worksheet.

Distinctions:

  • Categorical Precision: Dimension Filters allow you to filter data based on categorical dimensions. They’re your go-to for refining data based on non-numeric attributes like categories, regions, or product names.
  • Multiple Values: You can select specific dimension members you want to include or exclude, offering granular control over your dataset.

5. Measure Filters

Access:

For Measure Filters, drag a measure onto the Filters shelf, and the Measure Filter window opens, giving you options to define the range or conditions.

Distinctions:

  • Numerical Control: Measure Filters come into play when you need to filter data based on numerical measures like sales, quantity, or profit.
  • Range Definition: Set thresholds, define ranges, and apply conditions to include or exclude specific numerical values.

6. Tableau Calc Filters

Access:

Calculation Filters, or Tableau Calc Filters, are created within calculated fields. To access them, right-click on the calculated field, and you’ll find the option to add a filter.

Distinctions:

  • Custom Logic: Calc Filters allow you to create custom filters based on calculated fields. This is where you can infuse your data with bespoke logic, tailored to your specific analysis needs.
  • Dynamic Adaptability: Since Calc Filters are based on calculations, they offer dynamic adaptability. The filter adjusts in real-time as your underlying data changes.

3.1 Sets

Access:

Sets are created by selecting a subset of your data based on specific conditions. You can access Sets by right-clicking on a dimension and choosing “Create Set.”

Distinctions:

  • Dynamic Subsets: Sets allow you to dynamically define subsets of data based on conditions. These subsets can be utilized across worksheets, providing a dynamic way to analyze specific portions of your data.
  • Membership Control: You have control over which members belong to the set, and this membership can be based on conditions, ranking, or manual selection.

3.2 Conditional Filters

Access:

Conditional Filters, also known as Top N or Range filters, are applied directly to a measure in the view. Access them by right-clicking on a measure and selecting “Filter.”

Distinctions:

  • Measure-Based Criteria: Conditional Filters operate on measure values, allowing you to set conditions like displaying the top N items or a range of values.
  • Dynamic Control: These filters are dynamic and adjust as your data changes, providing real-time responsiveness to evolving datasets.

3. 3 Top N

Access:

Top N filters are a subset of Conditional Filters, and you can access them through the Filter menu by selecting the “Top” tab.

Distinctions:

  • Highlighting Elite Data: Top N filters specifically focus on showcasing the top performers based on a chosen measure. This is useful for spotlighting the highest sales, profits, or any other metric.

3.4 Fixed Level of Detail (LOD) Filters

Access:

Fixed LOD Filters are created using calculated fields that allow you to specify the level of detail for a filter. Right-click on the calculated field and add it as a filter.

Distinctions:

  • Precise Level of Detail: Fixed LOD Filters enable you to precisely define the level of detail for a filter. This can be especially useful when you want to apply a filter to a specific granularity, irrespective of the visualization’s level of detail.

4.1 Include/Exclude Level of Detail (LOD) Filters

Access:

Include and Exclude LOD Filters are created using calculated fields. You can access them by right-clicking on the calculated field and adding it as a filter.

Distinctions:

  • Selective Inclusion/Exclusion: Include LOD Filters allow you to include specific dimensions in your analysis, providing a refined view of your data. Conversely, Exclude LOD Filters enable you to exclude specific dimensions from your analysis.
  • Calculation-Based Control: These filters operate based on calculated fields, allowing you to apply intricate logic for selective inclusion or exclusion.

4.2 Data Blending

Access:

Data Blending is achieved when combining data from multiple sources in Tableau. Access the Data Blending settings by navigating to the Data menu.

Distinctions:

  • Interweaving Data Sources: Data Blending comes into play when you’re working with multiple data sources. It allows you to seamlessly interweave data from different sources, providing a unified view in your visualizations.
  • Common Dimensions: Blending is facilitated through common dimensions shared between the data sources. Tableau automatically identifies these common elements and blends the data accordingly.

As you transition from Dimension to Measure filters, Include/Exclude LOD Filters and Data Blending contribute unique dimensions to your analytical toolkit.

Strategic Control:

Include/Exclude LOD Filters offer a surgical approach to manipulating dimensions based on calculated conditions, giving you strategic control over what contributes to your analysis.

Harmonizing Diverse Sources:

Data Blending, on the other hand, harmonizes diverse data sources, ensuring a cohesive narrative emerges even when dealing with disparate datasets.

Sequential Flow:

Both these elements, occurring between Dimension and Measure filters, introduce a sequential flow of data manipulation. You set the stage by sculpting the dimensions through LOD filters and then seamlessly weave together different data sources through blending.

5.1 Forecasts

Access:

Forecasts can be accessed by right-clicking on a measure in your view and selecting the “Forecast” option.

Distinctions:

  • Predictive Insights: Forecasts empower you with the ability to predict future trends based on historical data.
  • Customization: Tailor your forecasts by adjusting the forecast length, choosing a confidence interval, and refining the forecasting model.

5.2 Table Calculations

Access:

Table Calculations can be accessed through the drop-down menu on a measure or by right-clicking on a pill in the view.

Distinctions:

  • In-Depth Analysis: Table Calculations enable you to perform complex computations on your data within the visualized results.
  • Window Functions: Utilize window functions to analyze a specific range of data points relative to the current data point, allowing for detailed comparisons and trend analyses.

5.3 Clusters

Access:

Cluster analysis can be initiated by selecting the “Cluster” option in the Analytics pane, where you can choose clustering dimensions and set the number of clusters.

Distinctions:

  • Pattern Recognition: Clusters help identify patterns and group similar data points together.
  • Unsupervised Learning: This is a form of unsupervised machine learning where Tableau automatically groups data points based on similarities.

5.4 Totals

Access:

Totals can be added to your view by right-clicking on a measure pill and choosing the “Add Totals” option.

Distinctions:

  • Aggregated Summation: Totals provide an aggregated sum or other specified calculation for a particular dimension or the entire dataset.
  • Granularity Control: You can control the granularity at which totals are displayed, enhancing the flexibility of your visualizations.

The Intersection of Forecasts, Table Calculations, Clusters, and Totals

As you traverse from Measure to Table Calculation Filters, these advanced features contribute a layer of depth and insight to your analytical arsenal.

Forward-Looking Insights:

Forecasts offer a forward-looking perspective, allowing you to anticipate trends and plan for the future.

In-Depth Analysis:

Table Calculations dive deep into your data, allowing for intricate computations and detailed analyses within your visualizations.

Pattern Recognition:

Clusters bring the power of unsupervised learning, identifying patterns and grouping data points based on inherent similarities.

Summative Insights:

Totals wrap up your analysis by providing aggregated insights, offering a comprehensive view of your data at different granularities.

6.1 Trend Lines

Access:

Trend Lines can be added to your visualizations by right-clicking on a measure in your view, selecting the “Trend Lines” option, and choosing the type of trend analysis you want.

Distinctions:

  • Temporal Insights: Trend Lines provide insights into the temporal progression of your data, helping you identify patterns and trends over time.
  • Regression Models: Choose from various regression models to fit the trend line to your data, allowing for a more accurate representation of trends.

6.2 Reference Lines

Access:

Reference Lines are added by right-clicking on a specific axis or within the Analytics pane. You can choose from various reference line options.

Distinctions:

  • Benchmarking: Reference Lines offer a benchmark against which you can compare your data, providing a visual guide for performance evaluation.
  • Customization: Customize reference lines to represent averages, medians, or other specific values, tailoring them to your analytical requirements.

Final Thoughts

Understanding Tableau’s Order of Operations is essential for proficient data manipulation and visualization. Efficiently selecting the right tools and features at each stage, from data extraction and dimension refinement to advanced analytics and visual embellishments, significantly impacts dashboard performance and the accuracy of results displayed in worksheets and dashboards. It’s not merely a procedural roadmap but a strategic framework that empowers users to craft precise and compelling data narratives. Navigating this order with expertise ensures optimal performance and the delivery of insights aligned with the overarching data story, elevating the art of data exploration in Tableau. 🚀📊

--

--

OmniView.

A holistic approach to navigating nuances in the Business Intelligence and Data Science space for Advanced Analytics