← All guides

Margin Analysis by Item Group: Where the Gross Margin Actually Leaks

Reporting & analytics · 6 min read · By Dex Carter · Published 2026-10-26 · Last updated 2026-10-26

Clothing rail with blank price tags beside a counter holding a calculator and folded garments
Group margin is read from realised sales and costs, not from the tag price alone.

Why can an item group show a comfortable gross margin on screen and still be the group that disappointed at month end? Because the group margin on a report is an aggregate: it blends full-price sales, discounted sales, and returns into one percentage, and it is only as good as the costs underneath it.

The number is not lying. It is answering a blunter question than the one being asked of it. A margin teardown asks the sharper questions, in a fixed order, starting with verification, before any leak is blamed.

Start with the group table, then distrust it in the right order

The documented starting point is solid. Business Central's Sales by Item, Sales by Customer, Sales by Salesperson, and Sales by Location reports each expose sales amount, sales quantity, cost amount, gross profit, gross profit margin, and sales as a percent of total sales. The Power BI Sales Demographics report carries Sales Amount, Cost Amount, Gross Profit, and Gross Profit Margin as KPIs, and it uses data from the Value Entries and Sales Lines tables.

Two consequences follow. First, a by-group view is an aggregation of that same documented material: group the sales lines and value entries by item category or retail product group and the same measures roll up. Second, the cost side of the margin comes from value entries, so the first question in any teardown is not about selling at all. It is whether the costs in those entries are complete and current for the period being reported.

Verify first: the spec checks before the story

Spec verification, in this order, every month:

  1. Confirm the measure source. The margin being quoted should trace to Value Entries and Sales Lines, the tables behind the Sales Demographics KPIs, not to a price list or a purchase price field. A margin computed from list prices is a markup estimate wearing a margin label.
  2. Check the margin-versus-markup conversion. Margin and markup are different ratios, related by a fixed formula: margin = markup ÷ (1 + markup). Run the check with the documented example, a target margin of 40% requires a markup of 66.7% on cost, not 40%. If a group's target was set by adding 40% to cost and then reported as a 40% margin target, the group has been graded against the wrong target from the start.
  3. Ask whether costs are complete for the period. If cost amounts for late-period sales are not yet fully posted into value entries, the cost amount reads low and the gross profit reads high. Treat any group margin from a period with incomplete costs as provisional, and label it that way.
  4. Read the trend, not a universal target. There is no universal good margin. The meaningful comparisons are the group's own twelve-month trend and the same product group at direct competitors. A group above an outside benchmark and sliding for three months is a worse signal than a group below it and stable.

What success looks like: every quoted group margin names its source tables, its target survives the margin/markup conversion check, incomplete-cost periods are labelled provisional, and the comparison offered is the group's own trend, not a generic “good” percentage.

Leak 1: discount and markdown mix inside the group

A group margin is a weighted result. The list price of an item did not change just because the realised margin fell; the mix of what was sold at full price versus at a discount may have. The diagnostic is to split the group's sales amount by realised price, full price against discounted, using the sales lines that feed the report, and compare the discounted share with the prior period. If the discounted share rose and the group margin fell by a similar order, the leak is in the selling mix, not in purchasing.

The reverse case matters too. A group margin that improves while the discounted share also rises points back at the cost side, return to the verification steps before celebrating it.

Leak 2: returns and the margin that comes back

Margin booked at the till is not all kept. A group with a high return rate hands margin back after the sale, and an aggregate report can leave that invisible if returns sit in a different view from the group's sales. Add one diagnostic column to the teardown: returns against the group, for the same period, read beside sales quantity and sales amount rather than in a separate report reviewed on a different day. A group that leads on gross profit margin and also leads on returns is not leading.

Leak 3: mix shift, the group did not change, its contents did

Groups are baskets. If a group's margin moves and neither its discounted share nor its returns moved, check the basket: which items inside the group carried the sales amount this period versus last? Sales as a percent of total sales, one of the documented report measures, makes this visible at group level, and the same reading item by item inside the group shows whether lower-margin items simply took a larger share. No item's own margin needs to have changed for the group's margin to fall. That is mix shift, and the fix belongs to assortment and selling decisions, not to a hunt for a cost error that does not exist.

Reading the teardown: a short framework

ObservationFirst checkWhere the fix sits
Group margin jumps in the final days of a periodCost completeness in value entries for those daysReporting discipline, label provisional
Margin falls, discounted share of sales roseFull-price versus discounted split on sales linesDiscount and markdown decisions
Margin falls, returns lead the group tableReturns read beside the group's sales, same periodProduct and selling fit, not price
Margin moves, no item-level margin changedItem share of group sales, period against periodAssortment mix
Target missed by a suspiciously round gapMargin versus markup conversion on the targetThe target itself

Disclaimer: group margin figures used for financial reporting or external commitments should be reconciled through the normal finance process. The teardown here is an internal diagnostic order, not accounting advice.

The monthly teardown, in order

  1. Pull the group table: sales amount, sales quantity, cost amount, gross profit, and gross profit margin by item group, from value entries and sales lines.
  2. Run the four verification checks: source tables, margin/markup conversion, cost completeness, twelve-month trend.
  3. Split each problem group by realised price: full price versus discounted.
  4. Read returns beside each group's sales for the same period.
  5. Compare item shares inside any group still unexplained.
  6. Record which leak explains each movement, or record that none did, and keep the group on the watch list rather than inventing a cause.

Kept in that order, the teardown takes one pass. Costs first, because a cost problem fakes every other reading; selling mix second; returns third; basket mix last, because it is the explanation left when nothing else moved.

For the arithmetic behind these margins, the margin, markup and markdown workbench converts cost, price, margin, and markup in both directions.

, Dex Carter, Tech Writer

IndexBack to all guides →