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?
Measure = CALCULATE(SUM(Sales[SalesAmount]), Sales[Region] = "West", Sales[ProductCategory] = "Electronics")
Remember CALCULATE applies all filters together.
The measure sums SalesAmount only where Region is West and ProductCategory is Electronics. Only that row has 1000.
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?
Think about which column holds product categories.
Filtering on ProductCategory = "Electronics" shows sales only for electronics products.
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)?
Remember to use FILTER when filtering columns from related tables.
Option D uses FILTER on Products table to filter by Category, combined with Sales region filter. Option D tries direct filter on related table column which doesn't work. Options C and D use non-existent columns.
What error will this DAX expression cause?
Measure = CALCULATE(SUM(Sales[SalesAmount]), Sales[Region] = "West" && Sales[ProductCategory] = "Electronics")
Measure = CALCULATE(SUM(Sales[SalesAmount]), Sales[Region] = "West" && Sales[ProductCategory] = "Electronics")
Check how multiple filters are passed to CALCULATE.
CALCULATE expects multiple filter arguments separated by commas. Using && inside a single filter argument causes syntax error.
Which statement best describes how CALCULATE applies multiple filter arguments?
Think about how multiple filters combine logically.
CALCULATE combines multiple filter arguments as AND conditions, so only rows meeting all filters are included.