Sales data by product and region
| Cell | Value |
|---|---|
| A1 | Product |
| B1 | Sales |
| C1 | Region |
| A2 | Apple |
| B2 | 100 |
| C2 | North |
| A3 | Banana |
| B3 | 150 |
| C3 | South |
| A4 | Apple |
| B4 | 200 |
| C4 | South |
| A5 | Banana |
| B5 | 120 |
| C5 | North |
Sales data by product and region
| Cell | Value |
|---|---|
| A1 | Product |
| B1 | Sales |
| C1 | Region |
| A2 | Apple |
| B2 | 100 |
| C2 | North |
| A3 | Banana |
| B3 | 150 |
| C3 | South |
| A4 | Apple |
| B4 | 200 |
| C4 | South |
| A5 | Banana |
| B5 | 120 |
| C5 | North |
Total Sales North = CALCULATE(SUM(Sales[Sales]), Sales[Region] = "North")A B C 1 Product Sales Region 2 Apple 100 North <-- Filter applied here 3 Banana 150 South 4 Apple 200 South 5 Banana 120 North <-- Filter applied here
A B 1 Measure Value 2 Total Sales North 220
Why do we use advanced DAX functions like CALCULATE and FILTER in Power BI?
Which of the following is the correct syntax to create a measure that calculates total sales filtered by a specific product category using CALCULATE?
TotalSalesCategory = CALCULATE(SUM(Sales[Amount]), Sales[Category] = "Bikes")Given the following DAX measure, what will be the result if the Sales table has 3 rows with Amounts 100, 200, and 300, and the Category column values are "Bikes", "Accessories", "Bikes" respectively?
TotalBikesSales = CALCULATE(SUM(Sales[Amount]), FILTER(Sales, Sales[Category] = "Bikes"))Identify the error in this DAX measure and select the correct fix:
FilteredSales = CALCULATE(SUM(Sales[Amount]), Sales[Category] = "Bikes" && Sales[Region] = "West")You want to calculate the average sales amount per customer, but only for customers who made more than 5 purchases. Which advanced DAX approach correctly handles this complex scenario?
Pass the test and this pattern moves unknown