Dimension and Measure Filters in Tableau
Course: Tableau Training
Topic: Understanding, Creating, Comparing, and Using Dimension and Measure Filters
Learning Objective: Learn how dimension filters and measure filters work in Tableau, how to configure them, how they affect aggregated data, and how to use them to build interactive dashboards and reports.
1. Introduction to Filters in Tableau
Filters in Tableau are used to limit the data displayed in a worksheet, chart, table, or dashboard. They help analysts focus on relevant information instead of viewing every record in a dataset. Filters can be applied to categorical fields, numerical fields, dates, and other data attributes.
For example, a sales analyst may want to view only sales from the West region, products belonging to the Furniture category, or records where total sales exceed ₹50,000. Tableau allows these requirements to be handled through different types of filters.
Two important filter types are:
- Dimension Filters: Filter categorical or descriptive field values, such as Region, Category, Customer Name, and Product Name.
- Measure Filters: Filter quantitative values, usually based on an aggregation such as SUM, AVG, MIN, or MAX.
Dimension filters generally determine which dimension members or underlying records are included. Measure filters generally determine which aggregated values remain visible at the level of detail of the visualization.
2. Understanding Dimensions in Tableau
A dimension is a field that helps describe, classify, group, or identify data. Dimensions are commonly used to organize information into categories and compare results across groups.
2.1 Examples of Dimensions
| Dimension |
Example Values |
Purpose |
| Region |
East, West, North, South |
Groups data by geographical region. |
| Category |
Furniture, Office Supplies, Technology |
Groups products by category. |
| Customer Name |
Amit, Priya, Rahul |
Identifies individual customers. |
| Product Name |
Chair, Laptop, Printer |
Identifies products. |
| Order Date |
2026-01-10, 2026-02-15 |
Organizes orders by date or date period. |
| Segment |
Consumer, Corporate, Home Office |
Groups customers into business segments. |
2.2 Characteristics of Dimensions
- Dimensions commonly contain text, categories, dates, or identifiers.
- They help divide data into meaningful groups.
- They are frequently placed on the Rows, Columns, Marks, or Filters shelves.
- They can be filtered by selecting specific members, matching patterns, applying conditions, or choosing Top/Bottom members.
- A dimension can be used as a filter even when it is not displayed directly in the visualization.
3. Understanding Measures in Tableau
A measure is a field that represents a quantity that can usually be calculated, summarized, or aggregated. Measures are commonly used to calculate totals, averages, counts, minimums, and maximums.
3.1 Examples of Measures
| Measure |
Example Values |
Purpose |
| Sales |
₹10,000, ₹25,000 |
Measures revenue or sales value. |
| Profit |
₹2,000, ₹5,000 |
Measures profitability. |
| Quantity |
2, 5, 10 |
Measures the number of units. |
| Discount |
0.05, 0.10, 0.20 |
Represents discount values or rates, depending on the dataset. |
| Order ID Count |
100, 250, 500 |
Can represent the number of orders when calculated appropriately. |
3.2 Common Aggregation Functions
| Aggregation |
Meaning |
Example |
| SUM() |
Adds values together. |
SUM([Sales]) |
| AVG() |
Calculates the average. |
AVG([Sales]) |
| MIN() |
Returns the minimum value. |
MIN([Profit]) |
| MAX() |
Returns the maximum value. |
MAX([Sales]) |
| COUNT() |
Counts non-null field values. |
COUNT([Order ID]) |
| COUNTD() |
Counts distinct values. |
COUNTD([Customer ID]) |
Important: A measure filter commonly works on an aggregated value. For example, filtering SUM(Sales) to values greater than ₹50,000 means Tableau retains groups whose aggregated sales satisfy that condition. The result depends on the dimensions defining the view.
4. What Is a Dimension Filter?
A dimension filter is a filter created using a dimension field. It lets you include or exclude particular categories, names, regions, dates, or other dimension members.
Example: A company has sales records for four regions: East, West, North, and South. If the analyst wants to see only West region sales, the Region field can be added to the Filters shelf and configured to include West.
4.1 When to Use Dimension Filters
- Display data for selected regions, cities, or countries.
- Analyze one or more product categories.
- Include or exclude particular customers or products.
- Limit records to a selected date or date period.
- Display products that match a text pattern.
- Filter data using a condition or select Top/Bottom members based on a measure.
4.2 How to Create a Dimension Filter
- Open Tableau Desktop and connect to a dataset, such as Sample - Superstore.
- Open a worksheet.
- Locate a dimension in the Data pane, such as Region or Category.
- Drag the dimension to the Filters shelf.
- In the Filter dialog box, select the members to include or exclude.
- Click OK to apply the filter.
- To let users interact with the filter, right-click the field on the Filters shelf and select Show Filter, or use the corresponding filter-card menu.
- Choose a suitable display style, such as a dropdown, single-value list, or multiple-value list.
4.3 Dimension Filter Options
| Option |
Description |
Example |
| General |
Selects specific members to include or exclude. |
Include only West and East. |
| Wildcard |
Matches members using a text pattern. |
Product names beginning with "Sam". |
| Condition |
Filters members based on a field condition or formula. |
Customers whose sales meet a specified condition. |
| Top |
Retains the Top or Bottom N members based on a selected measure. |
Top 10 products by SUM(Sales). |
Note: The available options depend on the field and data source. Dimension filter settings across the dialog tabs are cumulative, so multiple conditions can restrict the final results together.
4.4 Example: Filter Sales by Region
Suppose the dataset contains the following sales values:
| Region |
Sales |
| East |
₹40,000 |
| West |
₹75,000 |
| North |
₹35,000 |
| South |
₹50,000 |
If you apply a dimension filter on Region and select only West, the resulting view contains West and its sales value of ₹75,000. The other regions are excluded from the filtered view.
5. What Is a Measure Filter?
A measure filter is created using a quantitative field, such as Sales, Profit, or Quantity. It allows you to retain data based on numerical conditions, commonly using an aggregated measure.
Example: A manager wants to view only regions where total sales exceed ₹50,000. Drag Sales to the Filters shelf, select the appropriate aggregation, and configure the filter condition.
5.1 When to Use Measure Filters
- Display only groups with sales above a target.
- Find regions with profit below a threshold.
- Analyze groups within a numerical range.
- Identify high-performing or low-performing groups.
- Exclude null values or retain only null values when appropriate.
- Focus a report on meaningful aggregated values rather than all groups.
5.2 How to Create a Measure Filter
- Open a worksheet containing your dataset.
- Locate a measure, such as Sales or Profit, in the Data pane.
- Drag the measure to the Filters shelf.
- Choose the aggregation to filter, such as SUM, AVG, MIN, MAX, COUNT, or another available option.
- Click Next if Tableau presents the aggregation-selection dialog.
- Select the filter type, such as Range of Values, At Least, At Most, or Special.
- Enter the required threshold or range.
- Confirm the settings to apply the measure filter.
- If needed, show the filter card so users can adjust the range interactively.
5.3 Measure Filter Options
| Option |
Description |
Example |
| Range of Values |
Includes values between a minimum and maximum, including the boundaries. |
Sales from ₹20,000 to ₹80,000. |
| At Least |
Includes values greater than or equal to a specified minimum. |
SUM(Sales) ≥ ₹50,000. |
| At Most |
Includes values less than or equal to a specified maximum. |
SUM(Profit) ≤ ₹10,000. |
| Special |
Controls whether to include null values, non-null values, or all values where supported. |
Show only non-null measure values. |
5.4 Example: Filter Sales Above ₹50,000
Consider the following summarized sales data:
| Region |
Total Sales |
| East |
₹40,000 |
| West |
₹75,000 |
| North |
₹35,000 |
| South |
₹60,000 |
Apply a measure filter to SUM(Sales) with the condition At Least ₹50,000. The resulting view retains West with ₹75,000 and South with ₹60,000. East and North do not satisfy the condition and are removed from the view.
6. Difference Between Dimension Filters and Measure Filters
| Basis |
Dimension Filter |
Measure Filter |
| Field type |
Uses a dimension. |
Uses a measure. |
| Main purpose |
Selects categories or dimension members. |
Selects values satisfying numerical or aggregation criteria. |
| Typical fields |
Region, Category, Customer, Product. |
Sales, Profit, Quantity. |
| Common conditions |
Member selection, text patterns, conditions, Top/Bottom N. |
Value ranges, minimums, maximums, and null handling. |
| Example |
Show only the West region. |
Show groups where SUM(Sales) is above ₹50,000. |
| Effect |
Generally filters dimension members and their underlying records. |
Generally filters aggregated results at the level of detail in the view. |
| Order of operations |
Normally executes before measure filters. |
Normally executes after dimension filters. |
| SQL analogy |
Often similar to WHERE filtering. |
Often similar to HAVING filtering on aggregated results. |
| Common use |
Choose which business area or category to analyze. |
Choose which groups meet a performance threshold. |
7. Understanding the Difference Through an Example
Imagine a sales dataset with individual orders. You place Region on Rows and SUM(Sales) on Columns to create a bar chart.
Scenario A: Dimension Filter
You filter Region to include only West. Tableau excludes records belonging to other regions from the filtered analysis. The remaining sales are then summarized for the West region.
Scenario B: Measure Filter
You apply a filter on SUM(Sales) to keep values greater than ₹50,000. Tableau evaluates the aggregated sales at the view's level of detail and retains only groups whose total sales satisfy the condition.
Scenario C: Combining Both Filters
You filter Region to West and East, then apply SUM(Sales) greater than ₹50,000. Tableau first applies the dimension filter, then evaluates the measure filter on the groups that remain. Only groups satisfying both conditions appear.
Key learning: A dimension filter determines which members or underlying records participate in the analysis. A measure filter determines which aggregated results remain visible. The exact result depends on the fields and level of detail in the view.
8. Combining Dimension and Measure Filters
In practical Tableau dashboards, both types are often used together. Dimension filters narrow the scope of analysis, while measure filters focus the results on relevant performance levels.
Example: Regional Sales Dashboard
Business requirement: Show sales for selected product categories and retain only regions with total sales of at least ₹100,000.
- Drag Region to Rows.
- Drag Sales to Columns and ensure the aggregation is SUM(Sales).
- Drag Category to Filters and select Furniture and Technology.
- Drag Sales to Filters, select SUM, and set the minimum to ₹100,000.
- Optionally show the Category filter so users can change their selections.
- Format the chart, add labels, and provide a meaningful title.
The resulting view displays only the selected categories' sales and retains region-level results that satisfy the measure threshold.
9. Filter Order of Operations
Tableau evaluates different filter types in a defined order. Understanding this order helps explain why a filtered view may not produce the result you initially expect.
A simplified order for common filter types is:
- Extract filters
- Data source filters
- Context filters
- Dimension filters
- Measure filters
- Table calculation filters
This is a simplified list of common filter stages, not a complete description of every operation in Tableau. Level of detail expressions and other features have specific evaluation rules.
9.1 Why Does Filter Order Matter?
Suppose a worksheet contains Region, Category, and SUM(Sales). A dimension filter restricts the records or members used in the analysis. A measure filter then evaluates the aggregated values that result from the remaining data and the level of detail in the view.
Tableau's order of operations also matters when using FIXED, INCLUDE, or EXCLUDE level of detail expressions. FIXED expressions are evaluated before ordinary dimension filters unless the relevant filters are made context filters. INCLUDE and EXCLUDE expressions are evaluated later than dimension filters in the documented order.
9.2 Context Filters
A context filter creates a primary filtering context for other filters on a worksheet. It can be useful when you need subsequent dimension filters to work against a restricted subset of data, including certain Top N analyses.
To create one, right-click the relevant field on the Filters shelf and select Add to Context. Tableau displays the context filter in a distinct style.
Important: Do not add every filter to context automatically. Use context filters when the required filtering logic or performance characteristics justify them.
10. Dimension Filter Tabs in Detail
10.1 General Filter
The General tab allows you to choose specific members to include or exclude. For example, select Technology and Furniture from Category to limit the analysis to those categories.
10.2 Wildcard Filter
A wildcard filter matches members according to a text pattern. For example, a pattern such as Lap* can match product names beginning with "Lap", depending on the available values and pattern rules.
10.3 Condition Filter
A condition filter keeps members that satisfy a specified condition. Conditions can be based on a field or a formula, depending on the available settings. For example, use a sales-based condition to identify customers whose sales meet a business requirement.
10.4 Top Filter
A Top filter keeps the highest-ranking or lowest-ranking members according to a selected measure. For example, display the Top 10 products by SUM(Sales). A Top filter on a dimension is different from simply filtering SUM(Sales) above a fixed threshold.
11. Measure Filters and Aggregation
When a measure is dragged to the Filters shelf, Tableau typically asks how the measure should be aggregated or filtered. Selecting the correct aggregation is essential because different aggregations can produce different results.
| Filter Expression |
Meaning |
| SUM([Sales]) |
Evaluates total sales at the relevant level of detail. |
| AVG([Sales]) |
Evaluates average sales at the relevant level of detail. |
| MIN([Sales]) |
Evaluates the minimum sales value at the relevant level of detail. |
| MAX([Sales]) |
Evaluates the maximum sales value at the relevant level of detail. |
| COUNT([Order ID]) |
Counts non-null order ID values at the relevant level of detail. |
| COUNTD([Customer ID]) |
Counts distinct customers at the relevant level of detail. |
Example: A region may have 100 individual sales records. Filtering individual sales values is not the same as filtering the region's total sales. When the requirement is to show regions with total sales above ₹100,000, use an appropriate aggregated measure filter, such as SUM(Sales).
12. Practical Exercise Using Sample Superstore
Objective: Create a worksheet that shows selected categories and only the region-level sales results above a specified threshold.
Step 1: Connect to Data
- Open Tableau Desktop.
- Connect to the Sample - Superstore dataset if it is available in your installation.
- Open a new worksheet.
Step 2: Build the Chart
- Drag Region to Rows.
- Drag Sales to Columns.
- Confirm that the measure is displayed as SUM(Sales).
- Choose a bar chart if Tableau has not selected one automatically.
Step 3: Apply a Dimension Filter
- Drag Category to the Filters shelf.
- Select Furniture and Technology.
- Click OK.
- Optionally select Show Filter to make the category selection interactive.
Step 4: Apply a Measure Filter
- Drag Sales to the Filters shelf.
- Select SUM as the aggregation, if prompted.
- Choose At Least or Range of Values.
- Enter a suitable threshold, such as ₹100,000, using the dataset's numeric scale and currency formatting.
- Apply the filter and inspect the remaining regions.
Step 5: Improve the Worksheet
- Rename the worksheet to "Regional Sales Analysis".
- Sort the bars by sales if this improves readability.
- Show sales labels where useful.
- Format numbers as currency.
- Add a clear title explaining the category selection and sales threshold.
Expected Result
The worksheet shows sales for the selected categories and retains region-level aggregated results that satisfy the configured measure filter. Exact values depend on the dataset and filter settings.
13. Practical Business Scenarios
| Business Requirement |
Filter Type |
Example Configuration |
| Analyze sales from the West region. |
Dimension |
Region = West. |
| Show only Technology products. |
Dimension |
Category = Technology. |
| Display regions with sales above ₹100,000. |
Measure |
SUM(Sales) ≥ ₹100,000. |
| Display groups with profit below ₹10,000. |
Measure |
SUM(Profit) ≤ ₹10,000. |
| Show the Top 10 products by sales. |
Dimension filter with Top configuration |
Product Name → Top 10 by SUM(Sales). |
| Analyze selected customers with high sales. |
Both |
Select customers, then filter their aggregated sales. |
| Analyze orders in a particular year and retain high-sales groups. |
Both |
Filter Order Date, then filter aggregated Sales. |
14. Common Mistakes and Troubleshooting
14.1 Choosing the Wrong Field
Problem: You want to show only a specific region but try to use a measure filter.
Solution: Use a dimension filter on Region. Use measure filters for numerical conditions on measures or their aggregations.
14.2 Choosing the Wrong Aggregation
Problem: The result changes unexpectedly when switching from SUM(Sales) to AVG(Sales).
Solution: Confirm the business question. Use SUM for total sales and AVG for average sales when those are the intended metrics.
14.3 Filtering at the Wrong Level of Detail
Problem: A measure filter returns different results after adding or removing a dimension from the view.
Solution: Check the level of detail. A measure filter evaluates the relevant aggregated values, and changing the dimensions in the visualization can change those aggregates.
14.4 Confusing Top N with a Threshold
Problem: You need the 10 highest-selling products but filter sales to values greater than a fixed amount.
Solution: Use a Top filter on the product dimension when the requirement is to retain the top 10 products. Use a measure threshold when the requirement is to retain every group above a specified value.
14.5 Expecting a FIXED Calculation to Follow a Dimension Filter
Problem: A FIXED LOD calculation still reflects data outside the selected dimension members.
Solution: Review Tableau's order of operations. FIXED expressions are evaluated before ordinary dimension filters. A context filter or a different calculation design may be appropriate, depending on the requirement.
14.6 Using Too Many Filters
Problem: A dashboard becomes slow or difficult to use.
Solution: Keep only relevant filters, limit unnecessarily large member lists, and test performance. For large data sources, measure filtering can sometimes be expensive; consider whether a set or another data-modeling approach is more appropriate.
15. Best Practices for Dimension and Measure Filters
- Use descriptive names for filters so dashboard users understand what they control.
- Use dimension filters for categories, customers, regions, and other descriptive fields.
- Use measure filters for numerical thresholds and aggregated performance conditions.
- Choose the correct aggregation before applying a measure filter.
- Use Top N filters for ranking requirements rather than trying to approximate ranking with a threshold.
- Use context filters selectively when the filtering logic requires them.
- Show interactive filter cards only when users need to change the selections.
- Test filters together to confirm that their combined conditions produce the expected result.
- Check how filters affect calculations, especially level of detail expressions and table calculations.
- Format currency, percentages, dates, and numeric ranges clearly.
16. Interview Questions and Answers
Q1. What is a dimension filter in Tableau?
Answer: A dimension filter uses a dimension field to include or exclude specific members or categories, such as regions, customers, product categories, or dates.
Q2. What is a measure filter in Tableau?
Answer: A measure filter uses a quantitative field and commonly filters its aggregated values, such as SUM(Sales), AVG(Profit), or COUNT(Order ID), according to specified criteria.
Q3. What is the main difference between dimension filters and measure filters?
Answer: Dimension filters select dimension members or underlying records, while measure filters generally select aggregated results at the level of detail defined by the view.
Q4. How do you create a dimension filter?
Answer: Drag a dimension to the Filters shelf, choose the required members or configure a suitable condition, and apply the filter.
Q5. How do you create a measure filter?
Answer: Drag a measure to the Filters shelf, choose the required aggregation, select a filter type such as Range of Values or At Least, and configure the criteria.
Q6. Can dimension and measure filters be used together?
Answer: Yes. For example, select the West region with a dimension filter and then retain only groups whose SUM(Sales) exceeds ₹50,000 with a measure filter.
Q7. What is the difference between a Top N filter and a measure threshold filter?
Answer: A Top N filter retains a specified number of highest- or lowest-ranked dimension members according to a measure. A threshold filter retains groups whose measure values satisfy a condition, regardless of how many groups qualify.
Q8. What does SUM(Sales) mean in a measure filter?
Answer: It means Tableau evaluates the total of Sales at the relevant level of detail and applies the filter condition to those aggregated values.
Q9. Why can a measure filter produce different results when the view changes?
Answer: Adding or removing dimensions can change the level of detail at which measures are aggregated. The filter then evaluates different groups or aggregated values.
Q10. What is a context filter?
Answer: A context filter establishes a primary subset of data for other filters in the worksheet. It is useful for particular filtering workflows, including some Top N analyses.
Q11. Which filter usually executes first: dimension or measure?
Answer: In Tableau's common filter order, dimension filters execute before measure filters.
Q12. What is the SQL analogy for dimension and measure filters?
Answer: Dimension filters are often compared to WHERE clauses, while measure filters on aggregated values are often compared to HAVING clauses. This is a useful analogy, not a complete equivalence for every Tableau feature.
17. Practice Exercises
- Create a bar chart showing sales for the West region only.
- Create a worksheet showing Furniture and Technology categories.
- Filter the view to show groups with SUM(Sales) greater than ₹75,000.
- Display groups whose SUM(Profit) is below ₹10,000.
- Create a Top 10 Products by Sales view using a Top filter.
- Combine a Region dimension filter with a SUM(Sales) measure filter.
- Compare the results of SUM(Sales) and AVG(Sales) filters.
- Show a dimension filter card and change its display style to a dropdown.
- Investigate how adding another dimension to Rows affects a measure filter.
- Explain why a FIXED LOD calculation may not respond to an ordinary dimension filter.
18. Quick Revision Checklist
- Understand what dimensions and measures represent.
- Know when to use dimension filters and measure filters.
- Know how to add a field to the Filters shelf.
- Understand General, Wildcard, Condition, and Top dimension filter options.
- Understand Range of Values, At Least, At Most, and Special measure filter options.
- Know how aggregation affects measure filter results.
- Understand how dimension and measure filters work together.
- Know the basic Tableau filter order of operations.
- Understand the purpose of context filters.
- Practice creating interactive filters in worksheets and dashboards.
19. Conclusion
Dimension and measure filters are essential Tableau features for creating focused, meaningful, and interactive visualizations. Dimension filters help analysts select categories and members, while measure filters help them retain numerical results that satisfy specific criteria. When both filter types are used correctly, analysts can create reports that answer business questions more clearly and accurately.
To improve your Tableau skills, practice both filter types with sample datasets, experiment with different aggregations, and observe how filter order and level of detail affect your results.
20. Learn Tableau with JustAcademy
Explore Tableau training to strengthen your data visualization, reporting, dashboard creation, and analytics skills.
JustAcademy Tableau Training
Interested in learning more? Register for a course demo to explore the training before enrolling.
Register for a Tableau Course Demo
21. Additional Learning Resources