Dashboard Mode - ARRAYFORMULA function
Dashboard Goal
Calculate total sales for each product by multiplying quantity and price for all rows automatically using ARRAYFORMULA.
Calculate total sales for each product by multiplying quantity and price for all rows automatically using ARRAYFORMULA.
| Product | Quantity | Price |
|---|---|---|
| Apples | 10 | 2 |
| Bananas | 5 | 1.5 |
| Cherries | 20 | 3 |
| Dates | 7 | 4 |
| Elderberries | 3 | 5 |
=SUM(D2:D6)=ARRAYFORMULA(IF(A2:A6="","",B2:B6*C2:C6))+----------------------+---------------------+ | Total Revenue | Sales by Product | | (KPI) | (Bar Chart) | +----------------------+---------------------+ | Sales per Product Table | | (Product, Quantity, Price, Sales) | +-------------------------------------------------+
Add a filter for Product name. When you select a product, the Sales per Product table and Bar Chart update to show only that product's data. The Total Revenue KPI updates to show the sum for the filtered product(s).
If you add a filter to show only "Bananas" and "Dates", which components update and what values do they show?