Sample Data
Sales data for different fruits.
| Cell | Value |
|---|---|
| A1 | Product |
| B1 | Sales |
| A2 | Apples |
| B2 | 100 |
| A3 | Bananas |
| B3 | 150 |
| A4 | Cherries |
| B4 | 200 |
| A5 | Dates |
| B5 | 50 |
Sales data for different fruits.
| Cell | Value |
|---|---|
| A1 | Product |
| B1 | Sales |
| A2 | Apples |
| B2 | 100 |
| A3 | Bananas |
| B3 | 150 |
| A4 | Cherries |
| B4 | 200 |
| A5 | Dates |
| B5 | 50 |
CALCULATE(SUM(Sales), Product IN {"Apples", "Bananas"})A B +-------+-------+ 1 |Product| Sales | +-------+-------+ 2 |Apples | 100 | <-- Included by filter 3 |Bananas| 150 | <-- Included by filter 4 |Cherries| 200 | <-- Excluded by filter 5 |Dates | 50 | <-- Excluded by filter +-------+-------+
A B +-------+-------+ 1 |Product| Sales | +-------+-------+ 2 |Apples | 100 | 3 |Bananas| 150 | +-------+-------+ Total Sales (Filtered) = 250