> ## Documentation Index
> Fetch the complete documentation index at: https://docs.omni.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Using Level of Detail functions for cohorting analysis

> Utilize Level of Detail fields to create a cohort analysis for determining how different cohorts of user perform over time.

[All guides](https://docs.omni.co/guides.md)

Progress

%

Category

patterns

Last updated

March 2026

# Using Level of Detail functions for cohorting analysis

You can use [Level of Detail](https://omni.co/demos/20250523#level-of-detail-fields) (LoD) calculations to perform cohort analysis without creating query views or complex joins. This guide shows you how to identify a user's first order date to track behavior and retention over time.

## Requirements

To follow the steps in this guide, you'll need:

* Access to a **dataset** with an `Order Date` and `User ID`.
* Restricted Querier or above connection permissions to build in the workbook.

## 1. Create the LoD field

First, define the aggregation that identifies the first order for each user.

1. In the field browser in a workbook, find the `Order Date` field.
2. Hover over the field and click the  that displays, then **Modeling > New Level of Detail field**:

   ![New level of Detail Field](https://mintcdn.com/omni-e7402367/ke3ztNQLVW7Q5Rk_/guides/patterns/images/build-cohort-level-of-detail-create-lod.jpeg?fit=max\&auto=format\&n=ke3ztNQLVW7Q5Rk_\&q=85\&s=789e11495830bd64db4d8f988b94a5ca)

## 2. Configure the calculation

Set the scope of the calculation to ensure the date is fixed to the user regardless of other filters in your query.

1. In the editing pane, select **Fixed LoD Grouping**.
2. Under **Fixed Dimension(s)**, select `User ID` to isolate each individual user's activity. This sets the aggregation to find the minimum (first) `Order Date` for each `User ID`.

   ![Level of Detail field configuration pane showing Fixed LoD Grouping, User ID grouping, and minimum Order Date aggregation](https://mintcdn.com/omni-e7402367/ke3ztNQLVW7Q5Rk_/guides/patterns/images/build-cohort-level-of-detail-new-field.png?fit=max\&auto=format\&n=ke3ztNQLVW7Q5Rk_\&q=85\&s=f8497e6035b1e5cd4a0320066e594a8d)

## 3. Visualize the cohort

Once the field is defined, you can build your cohort grid to analyze user patterns.

1. Using the field browser, select the new LoD field to serve as your cohort date.
2. Select the original `Order Date` and `Order Count`.
3. [Pivot](https://docs.omni.co/visualize-present/visualizations/types/table#working-with-pivots) the LoD field by clicking the  icon next to the Level of Detail field header in the workbook, then select **Pivot**. This will allow you to see how these cohorts have purchased products over time.

   ![Level of Detail Cohort Visualization](https://mintcdn.com/omni-e7402367/ke3ztNQLVW7Q5Rk_/guides/patterns/images/build-cohort-level-of-detail-visualization.jpeg?fit=max\&auto=format\&n=ke3ztNQLVW7Q5Rk_\&q=85\&s=18798e2dd5135140ebe84fc5c885bb42)

## Video walkthrough

[Building Cohort Analysis with Level of Detail field](https://www.loom.com/embed/921789360b7d47ebaef02824017faa13)

## Next steps

Now that you have built your cohort using LoD, you can further refine your analysis:

* [Learn more about table visualizations](https://docs.omni.co/visualize-present/visualizations/types/table) to further customize your view.
* [Explore advanced querying](https://docs.omni.co/analyze-explore/querying) to add filters or custom calculations to your cohort.
* Review [Cohort analysis using a thin spine](https://docs.omni.co/guides/patterns/spine-cohort-analysis.md) for an alternative approach.
