Sample Data
This table shows products with their categories and sales amounts.
| Cell | Value |
|---|---|
| A1 | Product |
| B1 | Category |
| C1 | Sales |
| A2 | Apple |
| B2 | Fruit |
| C2 | 100 |
| A3 | Carrot |
| B3 | Vegetable |
| C3 | 50 |
| A4 | Banana |
| B4 | Fruit |
| C4 | 80 |
| A5 | Broccoli |
| B5 | Vegetable |
| C5 | 60 |
This table shows products with their categories and sales amounts.
| Cell | Value |
|---|---|
| A1 | Product |
| B1 | Category |
| C1 | Sales |
| A2 | Apple |
| B2 | Fruit |
| C2 | 100 |
| A3 | Carrot |
| B3 | Vegetable |
| C3 | 50 |
| A4 | Banana |
| B4 | Fruit |
| C4 | 80 |
| A5 | Broccoli |
| B5 | Vegetable |
| C5 | 60 |
FILTER(Table1, Table1[Category] = "Fruit")A B C 1 | Product | Category | Sales 2 | Apple | Fruit | 100 3 | Carrot | Vegetable| 50 4 | Banana | Fruit | 80 5 | Broccoli| Vegetable| 60 Filter uses column B (Category) to check for "Fruit"
A B C 1 | Product | Category | Sales 2 | Apple | Fruit | 100 4 | Banana | Fruit | 80
What does the FILTER function do in Power BI?
Which of the following is the correct syntax to filter a table Sales for rows where Amount is greater than 100?
FILTER(____, Amount > 100)Given the table Products with columns Category and Price, what will this DAX expression return?
FILTER(Products, Products[Category] = "Beverages" && Products[Price] < 20)Identify the error in this DAX expression that filters Orders for Quantity greater than 10:
FILTER(Orders, Quantity > 10)You want to create a measure that counts how many sales have PurchaseAmount over $500 in the Sales table. Which DAX expression correctly filters the Sales table?
COUNTROWS(FILTER(Sales, ____))Pass the test and this pattern moves unknown