Skip to main content
Level of Detail (LoD) fields control the granularity at which an aggregation is computed. When used as a dimension, an LoD produces a categorical value — one row per level of detail — which lets you perform an additional layer of aggregation (e.g., average customer lifetime spend).
You can also create LoD fields in the workbook! See Creating level of detail fields for more information.

How it works

The easiest way to understand an LoD dimension is to read it as SQL. For example, this max_age_in_country LoD finds the maximum user age within each country and attaches it to every user row:
The fixed: [country] clause corresponds to the GROUP BY country in the inner query — one row per country, the level of detail. The join then carries that country-level value back to each user row, which is why the LoD behaves like a categorical dimension: every user in the same country shares the same max_age_in_country value.

Syntax

Properties

object
The name of the dimension. Dimension names must:
  • Be unique within the view
  • Start with a letter
  • Contain only alphanumeric characters and underscores

Examples

Customer lifetime spend
Fixed level of detail
Exclude dimensions from grouping
Sum distinct on with custom primary key
Selectively ignore a specific global filter
Replace a cancelled filter with a different value
Compare with cancel_query_filters (all-or-nothing)