What is a dimension in analytics?
Definition
A dimension is an attribute used to group, filter or describe a measurement. In revenue by country, revenue is the measure and country is the dimension. Dimensions can be stored fields or calculated categories, such as a signup month derived from a timestamp.
The choice of dimension changes the question being answered. Comparing sales by country reveals a geographic pattern; grouping the same sales by month reveals a time trend.
Why it matters
A dimension lets you break an overall result into groups that may behave differently. A stable total can conceal growth in one country and a decline in another. Choosing a relevant breakdown helps explain the pattern and can make the next question more specific.
The choice also affects how much detail a report contains. Grouping by month produces a different view from grouping by day, and grouping by individual customer can create many more categories than grouping by region. Check how missing or inconsistent category values are handled, and whether the categories remain comparable over time. The useful dimension is the one that helps answer the question, with enough detail to explain the result without overwhelming the reader.
Example: the same orders, two ways of grouping them
Consider three completed orders, with values in euros:
| order_id | country | month | order_total |
|---|---|---|---|
| 101 | NL | January | 100.00 |
| 102 | NL | February | 50.00 |
| 103 | DE | February | 80.00 |
Grouping by country produces NL: €150 and DE: €80. Grouping by month produces January: €100 and February: €130. The total stays €230 because the records and calculation have not changed; only the dimension has.
Using both dimensions breaks the result into country-and-month combinations. Filtering to February first would instead change which orders are included, leaving €130 to group. Distinguishing grouping from filtering makes a chart easier to interpret.