Challenge - 5 Problems
FILTER Function Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ dax_lod_result
intermediate2:00remaining
FILTER function with simple condition
Given the table Sales with columns Product and Quantity, what is the result of this DAX expression?
FILTER(Sales, Sales[Quantity] > 10)
Attempts:
2 left
💡 Hint
FILTER returns a table with rows matching the condition.
✗ Incorrect
FILTER returns a table containing only rows where the condition is true. Here, rows with Quantity > 10 are included.
❓ visualization
intermediate2:00remaining
Using FILTER in a measure for visualization
You want to create a card visualization showing total sales for products with sales greater than 100 units. Which DAX measure using FILTER is correct?
Attempts:
2 left
💡 Hint
Use CALCULATE with FILTER to modify filter context.
✗ Incorrect
Option B correctly uses CALCULATE with FILTER to sum Amount only for rows where Quantity > 100. Other options misuse FILTER or aggregation.
❓ data_modeling
advanced2:00remaining
FILTER function with related tables
You have two tables: Orders and Customers, related by CustomerID. You want to filter Orders for customers in the 'USA'. Which DAX FILTER expression is correct?
Attempts:
2 left
💡 Hint
Use RELATED to access columns from related tables in FILTER.
✗ Incorrect
Option C uses RELATED to get the Country from Customers table for each Order row. Option C is invalid because Customers is a different table, C uses wrong column, D filters Customers not Orders.
🔧 Formula Fix
advanced2:00remaining
Identify the error in this FILTER expression
What error will this DAX expression cause?
FILTER(Sales, Sales[Quantity] > 10 && Sales[Date])
Attempts:
2 left
💡 Hint
Check the condition inside FILTER carefully.
✗ Incorrect
The condition uses '&& Sales[Date]' which is invalid because Sales[Date] is a date, not a boolean expression. This causes a syntax error.
🧠 Conceptual
expert2:00remaining
FILTER function behavior with empty tables
If FILTER is applied on an empty table, what is the result?
Attempts:
2 left
💡 Hint
Think about how FILTER works on no rows.
✗ Incorrect
FILTER returns a table with only rows that meet the condition. If the input table is empty, no rows exist to filter, so the result is an empty table.