0
0
Tableaubi_tool~20 mins

Measure filters in Tableau - Practice Problems & Coding Challenges

Choose your learning style9 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.