Dashboard Mode - ORDER BY clause
Goal
Sort a list of products by their sales amount to quickly see which products sold the most and which sold the least.
Sort a list of products by their sales amount to quickly see which products sold the most and which sold the least.
| Product | Category | Sales |
|---|---|---|
| Apples | Fruit | 150 |
| Bananas | Fruit | 120 |
| Carrots | Vegetable | 90 |
| Broccoli | Vegetable | 110 |
| Oranges | Fruit | 200 |
| Potatoes | Vegetable | 130 |
=SORT(A2:C7, 3, FALSE)=INDEX(SORT(A2:C7, 3, FALSE), 1, 1)=INDEX(SORT(A2:C7, 3, FALSE), 1, 3)+----------------------+-----------------------+ | Top Product Card | Top Sales Amount Card | +----------------------+-----------------------+ | | | Sorted Sales Table | | | +----------------------------------------------+
Add a filter dropdown to select a category (Fruit or Vegetable). When a category is selected, the sorted table and top product cards update to show only products from that category.
Example filter formula: =FILTER(A2:C7, B2:B7=E1) where E1 is the selected category.
Then apply SORT on the filtered data to keep sorting by sales.
If you add a filter to show only 'Fruit' category, which products appear in the sorted table?
Answer: Oranges, Apples, Bananas (sorted by sales descending: 200, 150, 120)