Dashboard Mode - Why QUERY is Google Sheets' most powerful function
Goal
Answer the question: How can we use the QUERY function in Google Sheets to quickly analyze and summarize sales data?
Answer the question: How can we use the QUERY function in Google Sheets to quickly analyze and summarize sales data?
| Order ID | Product | Region | Sales | Quantity |
|---|---|---|---|---|
| 1001 | Notebook | East | 120 | 3 |
| 1002 | Pen | West | 80 | 5 |
| 1003 | Notebook | East | 150 | 4 |
| 1004 | Pen | North | 90 | 6 |
| 1005 | Notebook | West | 200 | 7 |
| 1006 | Pen | East | 70 | 2 |
| 1007 | Notebook | North | 130 | 3 |
=SUM(D2:D8)=SUM(E2:E8)=QUERY(A1:E8, "select C, sum(D), sum(E) group by C label sum(D) 'Total Sales', sum(E) 'Total Quantity'", 1)=QUERY(A1:E8, "select A, B, D, E where B = 'Notebook' and C = 'East'", 1)+----------------------+-----------------------+ | Total Sales (KPI) | Total Quantity (KPI) | +----------------------+-----------------------+ | Sales by Region Summary Table | +-----------------------------------------------+ | Filtered Notebook Sales in East Region | +-----------------------------------------------+
Adding a filter dropdown for Region lets users select a region. When a region is selected:
This shows how QUERY formulas dynamically adjust to filter inputs, making the dashboard interactive and powerful.
If you add a filter for Region = West, which components update and what changes?