Bird
Raised Fist0
Tableaubi_tool~20 mins

Measure filters in Tableau - Practice Problems & Coding Challenges

Choose your learning style10 modes available
Challenge - 5 Problems
🎖️
Measure Filter Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ dax_lod_result
intermediate
2:00remaining
Calculate total sales with measure filter applied

You have a sales dataset with a measure called Sales Amount. You want to calculate the total sales but only for transactions where the Sales Amount is greater than 1000. Which Tableau calculation will correctly apply this measure filter?

ASUM([Sales Amount]) WHERE [Sales Amount] > 1000
BSUM(IF [Sales Amount] > 1000 THEN [Sales Amount] ELSE 0 END)
CIF SUM([Sales Amount]) > 1000 THEN SUM([Sales Amount]) END
DSUM(IF [Sales Amount] > 1000 THEN [Sales Amount] END)
Attempts:
2 left
💡 Hint

Think about how Tableau handles conditional aggregation inside SUM().

❓ visualization
intermediate
2:00remaining
Best visualization to show filtered measure sales by category

You want to create a dashboard showing total sales by product category, but only including sales where the amount is above 500. Which visualization type best communicates this filtered measure data clearly?

AScatter plot showing sales amount vs. category without filtering
BStacked bar chart showing total sales by category with a filter on sales > 500
CLine chart showing sales trend over time without filtering
DPie chart showing percentage of total sales by category including all sales
Attempts:
2 left
💡 Hint

Think about which chart type clearly compares categories with filtered totals.

🧠 Conceptual
advanced
2:00remaining
Understanding measure filters vs dimension filters

Which statement best explains the difference between measure filters and dimension filters in Tableau?

AMeasure filters filter data after aggregation, dimension filters filter data before aggregation
BMeasure filters filter data before aggregation, dimension filters filter data after aggregation
CBoth measure and dimension filters filter data before aggregation
DBoth measure and dimension filters filter data after aggregation
Attempts:
2 left
💡 Hint

Think about when the filtering happens in the data flow.

🔧 Formula Fix
advanced
2:00remaining
Identify the error in this measure filter calculation

Given the calculation below, what error will Tableau show?

IF SUM([Profit]) > 1000 THEN [Profit] END
Tableau
IF SUM([Profit]) > 1000 THEN [Profit] END
AError: Syntax error due to missing ELSE clause
BNo error, calculation runs correctly
CError: Cannot mix aggregate and non-aggregate functions
DError: SUM function cannot be used inside IF statement
Attempts:
2 left
💡 Hint

Check if all parts of the calculation use aggregation consistently.

🎯 Scenario
expert
3:00remaining
Create a measure filter to show average sales only for categories with total sales above 10,000

You want to create a calculated field that shows the average sales per transaction, but only for product categories where the total sales exceed 10,000. Which Tableau calculation achieves this?

AIF { FIXED [Category] : SUM([Sales]) } > 10000 THEN AVG([Sales]) END
BIF SUM([Sales]) > 10000 THEN AVG([Sales]) END
CIF AVG([Sales]) > 10000 THEN AVG([Sales]) END
DIF { INCLUDE [Category] : AVG([Sales]) } > 10000 THEN AVG([Sales]) END
Attempts:
2 left
💡 Hint

Use a Level of Detail (LOD) expression to calculate total sales per category first.

Practice

(1/5)
1. What is the main purpose of a measure filter in Tableau?
easy
A. To filter data based on numeric values in measures
B. To change the color of a chart
C. To add labels to dimensions
D. To create new calculated fields

Solution

  1. Step 1: Understand what measure filters do

    Measure filters focus on numeric data, allowing you to filter based on values like sales or profit.
  2. Step 2: Compare with other options

    Changing colors, adding labels, or creating fields are different Tableau features unrelated to filtering measures.
  3. Final Answer:

    To filter data based on numeric values in measures -> Option A
  4. Quick Check:

    Measure filters = numeric value filtering [OK]
Hint: Measure filters always work on numbers, not text [OK]
Common Mistakes:
  • Confusing measure filters with dimension filters
  • Thinking measure filters change visuals only
  • Believing measure filters create new data
2. Which of the following is the correct way to apply a measure filter in Tableau?
easy
A. Drag a dimension to the Filters shelf
B. Right-click a worksheet and select 'Add Filter'
C. Double-click a measure in the Data pane
D. Drag a measure to the Filters shelf

Solution

  1. Step 1: Identify how to apply measure filters

    Measure filters are applied by dragging a measure (numeric field) to the Filters shelf.
  2. Step 2: Eliminate incorrect options

    Dragging a dimension filters categories, not measures; right-clicking worksheet doesn't add filters; double-clicking measure adds it to view, not filter.
  3. Final Answer:

    Drag a measure to the Filters shelf -> Option D
  4. Quick Check:

    Measure filter = drag measure to Filters [OK]
Hint: Only measures go to Filters shelf for measure filtering [OK]
Common Mistakes:
  • Dragging dimensions instead of measures to Filters
  • Trying to add filters from worksheet menu
  • Double-clicking measures expecting filter dialog
3. Given a sales measure filter set to show only sales greater than 1000, what will happen to a product with sales of 900?
medium
A. It will be excluded from the view
B. It will cause an error
C. It will show as zero sales
D. It will be included in the view

Solution

  1. Step 1: Understand the filter condition

    The filter shows only sales > 1000, so any sales less or equal to 1000 are excluded.
  2. Step 2: Apply condition to product sales

    Product with sales 900 is less than 1000, so it will be excluded from the view.
  3. Final Answer:

    It will be excluded from the view -> Option A
  4. Quick Check:

    Sales 900 < 1000 -> excluded [OK]
Hint: Filters exclude data not meeting condition, no errors [OK]
Common Mistakes:
  • Thinking filtered-out data shows as zero
  • Assuming filter includes all data
  • Expecting error on excluded data
4. You applied a measure filter on Profit > 0 but still see negative profit values in your view. What is the likely cause?
medium
A. The filter condition was set incorrectly as Profit < 0
B. The filter was applied on a dimension instead of the Profit measure
C. The data source has errors causing wrong values
D. The filter is applied after aggregation, so negative values remain

Solution

  1. Step 1: Check filter application

    If the filter was applied on a dimension, it won't filter numeric Profit values correctly.
  2. Step 2: Understand why negative profits appear

    Applying filter on dimension does not remove negative profits; measure filter on Profit is needed.
  3. Final Answer:

    The filter was applied on a dimension instead of the Profit measure -> Option B
  4. Quick Check:

    Filter on dimension ≠ filter on measure [OK]
Hint: Always apply measure filters on measures, not dimensions [OK]
Common Mistakes:
  • Applying measure filter on dimension field
  • Setting wrong filter condition
  • Assuming data source errors cause filter issues
5. You want to create a dashboard showing only customers with total sales above 5000. Which approach using measure filters is best?
hard
A. Apply a measure filter on individual sales transactions > 5000
B. Use a dimension filter on customer names containing '5'
C. Create a calculated field for total sales per customer and filter > 5000
D. Filter the data source to exclude sales below 5000

Solution

  1. Step 1: Understand the requirement

    We want customers with total sales above 5000, so aggregation per customer is needed.
  2. Step 2: Choose correct filtering method

    Applying filter on individual transactions won't sum sales; dimension filter on names is unrelated; filtering data source excludes data prematurely.
  3. Step 3: Use calculated field and filter

    Create a calculated field summing sales per customer, then apply measure filter > 5000 to show only those customers.
  4. Final Answer:

    Create a calculated field for total sales per customer and filter > 5000 -> Option C
  5. Quick Check:

    Aggregate then filter for totals [OK]
Hint: Aggregate measure per group before filtering totals [OK]
Common Mistakes:
  • Filtering individual transactions instead of totals
  • Using dimension filters unrelated to sales
  • Filtering data source instead of view
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard