0
0
Power BIbi_tool~20 mins

CALCULATE with multiple filters in Power BI - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Master of CALCULATE with Multiple Filters
Get all challenges correct to earn this badge!
Test your skills under time pressure!
dax_lod_result
intermediate
2:00remaining
Calculate Total Sales with Multiple Filters

Given a sales table with columns SalesAmount, Region, and ProductCategory, what is the result of this DAX measure?

Measure = CALCULATE(SUM(Sales[SalesAmount]), Sales[Region] = "West", Sales[ProductCategory] = "Electronics")

Assume the following data:

  • West, Electronics: 1000
  • West, Furniture: 500
  • East, Electronics: 700

What is the value of Measure?

Power BI
Measure = CALCULATE(SUM(Sales[SalesAmount]), Sales[Region] = "West", Sales[ProductCategory] = "Electronics")
A1000
B1500
C700
D2200
Attempts:
2 left
💡 Hint

Remember CALCULATE applies all filters together.

visualization
intermediate
1:30remaining
Visualizing Sales by Region and Category with Filters

You want to create a bar chart showing total sales for Electronics products only, across all regions. Which filter should you apply in the visualization?

AFilter the chart to Region = "Electronics"
BFilter the chart to SalesAmount > 1000
CFilter the chart to ProductCategory = "Electronics"
DFilter the chart to ProductCategory = "Furniture"
Attempts:
2 left
💡 Hint

Think about which column holds product categories.

data_modeling
advanced
2:30remaining
Combining Multiple Filters in CALCULATE with Relationships

You have two tables: Sales with columns SalesAmount, ProductID, and CustomerID, and Products with columns ProductID and Category. There is a relationship between Sales[ProductID] and Products[ProductID].

Which DAX measure correctly calculates total sales for products in the "Electronics" category and customers in the "West" region (region is in Sales table)?

ACALCULATE(SUM(Sales[SalesAmount]), Sales[Category] = "Electronics", Sales[Region] = "West")
BCALCULATE(SUM(Sales[SalesAmount]), Products[Category] = "Electronics", Sales[Region] = "West")
CCALCULATE(SUM(Sales[SalesAmount]), FILTER(Sales, Sales[Category] = "Electronics" && Sales[Region] = "West"))
DCALCULATE(SUM(Sales[SalesAmount]), FILTER(Products, Products[Category] = "Electronics"), Sales[Region] = "West")
Attempts:
2 left
💡 Hint

Remember to use FILTER when filtering columns from related tables.

🔧 Formula Fix
advanced
2:00remaining
Identify the Error in CALCULATE with Multiple Filters

What error will this DAX expression cause?

Measure = CALCULATE(SUM(Sales[SalesAmount]), Sales[Region] = "West" && Sales[ProductCategory] = "Electronics")
Power BI
Measure = CALCULATE(SUM(Sales[SalesAmount]), Sales[Region] = "West" && Sales[ProductCategory] = "Electronics")
ARuntime error due to ambiguous filter context
BSyntax error because multiple filters must be separated by commas, not combined with &&
CReturns total sales ignoring filters
DNo error, returns correct filtered sum
Attempts:
2 left
💡 Hint

Check how multiple filters are passed to CALCULATE.

🧠 Conceptual
expert
2:30remaining
Understanding Filter Context in CALCULATE with Multiple Filters

Which statement best describes how CALCULATE applies multiple filter arguments?

ACALCULATE applies all filters together as an AND condition, modifying the filter context accordingly
BCALCULATE applies filters one by one, overwriting previous filters each time
CCALCULATE applies filters as OR conditions, including rows matching any filter
DCALCULATE ignores all filters except the first one
Attempts:
2 left
💡 Hint

Think about how multiple filters combine logically.