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

# Insights & analytics

> Read margin change, category performance and margin opportunity on Insights & analytics, and ask the assistant why a figure moved in a period.

**Insights & analytics** shows how realised margin moved in the selected period, which categories drove it, and where margin sits below the live policy target. You can open any card as a full table, export it, and ask a question about performance in plain language. This page explains each card, how its figures are calculated and what to do when a card has no data.

## Who can see it

The page needs **View** on **Insights & reports**. Every figure on it is a financial figure: without **Financial figures** on your role, **Margin change** shows **Restricted**, and **Category performance** and **Margin opportunity** show only their titles. Figures are calculated from your role's data scope. See [Analytics overview](/docs/analyze/overview.md#who-can-see-analytics).

Open the page from **Analytics** › **Insights & analytics**.

## Performance card

The performance card shows **Margin change** for the selected period, a trend line, and three figures underneath.

**Margin change** is the gross margin in the selected period minus the gross margin in the comparison period, in points. Gross margin is gross profit divided by net sales, and only sales lines with a known cost count.

* The large figure is the margin change, for example `+1.4 pts`.
* The smaller figure next to it shows whether the change accelerated: this period's margin change minus the comparison period's own change against the period before it. Hover it to see the comparison dates under **Compared with** and the time of the newest data under **Data as of**.
* The chart plots each day's gross margin minus the comparison period's gross margin, in points. Periods longer than 31 days are grouped into 7-day blocks, and periods longer than 120 days into 30-day blocks.

| Figure | Definition |
| - | - |
| **Pending review** | Open recommendations plus scheduled changes that are waiting for their go-live date, split into raises and cuts. Select it to open the control center. |
| **Cost coverage** | Share of sales lines in the period that have a known cost. Margin figures use only these lines. |

> [!TIP]
>
> A low **Cost coverage** means margin is measured on a small share of sales. Check the cost mapping of your integration before acting on a margin change.

## Category performance

**Category performance** shows the gross margin of each category in the selected period as a bar, with a line at the weighted average.

| Element | Definition |
| - | - |
| **weighted avg** | Gross margin across all categories, weighted by revenue |
| Bar colour | Whether the category's margin went up, went down or stayed level against the comparison period |
| Movers | The four categories whose margin change carries the most money, measured as the change in points times the category's revenue on lines with a cost |

The card draws up to 500 categories, ordered by revenue. Select **Open all categories** to open the full table with these columns:

| Column | Definition |
| - | - |
| **Category** | Category name |
| **SKUs** | Active products in the category |
| **Margin** | Gross margin in the selected period |
| **Change (pts)** | The category's gross margin in the selected period minus its gross margin in the comparison period |

## Margin opportunity

**Margin opportunity** lists every category with lines sold below the price the live pricing policy sets, ranked by the money those lines fell short. A category is listed whatever its margin against the average. The figure in the corner is the total money below target, labelled **below target · 12 months**.

Every figure covers the last 12 months up to the end of the selected period, whatever period you pick, so a short period still shows a full year of shortfall.

Select **Open opportunity list** to open the full table:

| Column | Definition |
| - | - |
| **Category** | Category name |
| **Below target** | The sum over the category's lines of the markup shortfall against target, times cost and quantity, in the workspace currency. Lines above target add nothing. The table is sorted by this column and its total is in the last row. |
| **Markup** | Realised markup on the category's lines |
| **Target** | The live policy target markup on the same lines |
| **Gap (pts)** | Markup minus Target, in points. Negative means below target. |

Select a category to open its detail:

* **Overview** shows the money below target, markup against target, the products, customers and lines below target, a chart of the money by month, and the ways to fix it.
* **Products** lists each product with its average sold price, the policy price, the gap per unit, the quantity sold and the money below target.
* **Customers** lists each customer or channel with its segment, the products it bought below target, its gap in points and the money below target.

When no line in the category sold below the policy price in the last 30 days, the detail states the date of the last one. The 12-month figures stay until those months leave the window.

**Fix it** offers a draft strategy in Shadow scoped to the category, the assistant, and Pricing policy. A draft strategy needs **Edit** on **Strategies**. The lift target is the policy target of the category's sales over the last 12 months, and a category holds one such strategy at a time. Once a strategy is drafted, the card shows it with its state, who created it and when, and the money and lines sold below target after the day it went live, or after the day it was drafted while it is still a draft or in Shadow; the list shows the same state in the **Fix** column. Archiving the strategy clears it. Prices reach customers through quotes; item prices in the connected system are not changed.

### Card states

| State | What you see | What to do |
| - | - | - |
| Calculating | A loading placeholder in place of the card | The opportunity is recalculated after new sales or a new live policy. The page refreshes when it is ready. |
| No live pricing policy | **No live pricing policy** with "Margin opportunity is measured against the live pricing policy. Publish a pricing policy to see it." | Publish a pricing policy. See [Strategy](/docs/strategy/overview.md). |
| Not enough data | Sample rows under **Not enough data** | No category has lines sold below the policy price yet. |

## Open a card as a table

Each table opens in a side sheet with the selected period in its description. You can filter, sort, group and search it like any workspace table, and export it.

## Ask about performance

Type a question in **Ask about performance** at the top of the page, for example "Why did margin drop in fasteners?", and press Enter. The question needs at least three characters.

**1. Ask**

The assistant reads sales and margin for the selected period, compares it with the comparison period, and finds what changed. The steps it takes are listed while it works. Questions cover up to 366 days.

**2. Read the answer**

The answer opens in a side sheet with a headline and the categories behind it. Select **View all in table** to open the full category table.

**3. Share or act**

Use **Share** to **Copy link**, **Copy as text**, **Download PDF** or **Download CSV**. Select **Build a strategy** to start a new strategy from what you found.

A copied link reopens the stored answer. When newer data has arrived since the answer was stored, the sheet shows "Newer data is available since this answer was stored. Ask again to refresh it."

The question box is disabled when AI is turned off for the workspace. See [Assistant limits and availability](/docs/assistant/limits.md).

## When the page has no data

If the workspace has no sales lines in the last 12 months, the page shows the connect data screen with the next step for your integration. Each card also shows **Not enough data** with sample content until the selected period has enough sales lines with a cost to draw it.

If a card cannot be read, it shows an error with a reference while the other cards still load. Reload the page to try again.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.