Dashboard Mode - COUNTIF and COUNTIFS
Dashboard Goal
Find out how many sales meet certain conditions, like counting sales by product or by product and region.
Find out how many sales meet certain conditions, like counting sales by product or by product and region.
| Order ID | Product | Region | Sales |
|---|---|---|---|
| 1001 | Apples | East | 150 |
| 1002 | Bananas | West | 200 |
| 1003 | Apples | West | 120 |
| 1004 | Oranges | East | 180 |
| 1005 | Bananas | East | 160 |
| 1006 | Apples | East | 130 |
| 1007 | Oranges | West | 170 |
=COUNTIF(B2:B8, "Apples")=COUNTIF(C2:C8, "East")=COUNTIFS(B2:B8, "Bananas", C2:C8, "East")=COUNTIFS(B2:B8, E2, C2:C8, F1) (used in a grid with products in E column and regions in F row)+----------------+----------------+----------------+ | KPI: Apples | KPI: East | KPI: Bananas | | Count = 3 | Count = 4 | in East = 1 | +----------------+----------------+----------------+ | Sales Count by Product and Region | | +---------+---------+---------+ | | | | East | West | | | +---------+---------+---------+ | | | Apples | 2 | 1 | | | | Bananas | 1 | 1 | | | | Oranges | 1 | 1 | | | +---------+---------+---------+ | +-----------------------------------------------------+
Add a filter for Region. When you select a region like "East", all KPI cards and the table update to show counts only for that region. For example, the "Count of Apples" KPI will show how many Apple sales are in East only. The table will show counts for each product but only in the selected region.
If you add a filter for Product = Oranges, which components update and what will they show?