This page provides summary of the Formula Expressions used in the Unprofitable Product Agent (Reference).
Avg Margin Percentage
Definition
The product’s margin rate computed from transaction‑level data (conceptually margin divided by revenue).
Formula
SUM(GrossMargin)/ SUM(InvoicePrice)
Margin Variance
Definition
The difference between the product’s margin rate and the relevant benchmark (e.g., segment or portfolio average), quantifying the degree of underperformance.
Formula
s2.AvgMarginPct - s1.AvgMarginPct
Margin Uplift
Definition
The potential profit uplift for a customer if their margin rate were increased to the average of their own margin rate and the segment average. This metric quantifies the additional profit that could be realized by improving underperforming margins toward a blended benchmark.
Formula
((s1.Revenue* (s1.AvgMarginPct + s2.AvgMarginPct)/2) - s1.Profit)
Margin Lift Potential Percentage
Definition
The potential profit uplift (percentage) per product if their margin rate were raised to the relevant benchmark.
Formula
(s1.Revenue* (s1.AvgMarginPct + s2.AvgMarginPct)/2) / IFNULL(s1.Profit,0) - 1
Revenue Uplift
Definition
The estimated additional profit that could be realized if the subject’s margin rate were improved to the average of its current margin rate and the relevant benchmark (such as a segment average). This calculation applies the suggested margin rate to current revenue and subtracts the actual profit, quantifying the uplift potential from partial margin improvement.
Formula
((s1.Revenue* (s1.AvgMarginPct + s2.AvgMarginPct)/2) - s1.Profit)
Current Margin Percentage
Definition
The weighted gross margin percentage for the current period, computed as total margin divided by total revenue (invoice price).
Formula
s1.AvgMarginPct
Suggested Margin Percentage
Definition
The recommended interim margin rate set at the midpoint between the current margin rate and the benchmark/target margin rate (e.g., segment average).
Formula
(s1.Revenue* (s1.AvgMarginPct + s2.AvgMarginPct)/2)/NULLIF(s1.Revenue,0)
Segment Average Margin Percentage
Definition
The weighted average gross margin rate for a given segment over the selected period, computed as total margin divided by total revenue across all entities in that group. This is used as a benchmark in variance and uplift analyses.
Formula
s2.AvgMarginPct
Local List Price
Definition
The weighted average unit price over the selected period, computed from the sum of local list prices divided by the sum of quantities.
Formula
SUM(ListPrice)/NULLIF(SUM(Quantity),0)
Current List Price
Definition
The standard list price for a product in the current period, as set in the local system or price list. This price serves as the reference point for discounting, margin analysis, and transactional pricing.
Formula
s1.LocalListPrice
Suggested List Price
Definition
A recommended list price for a product, calculated by adjusting the current local list price to achieve a target margin rate. The target margin rate is set as the average of the product’s current margin rate and the relevant group or segment average margin rate.
Formula
s1.LocalListPrice * (1-s1.AvgMarginPct) / NULLIF(1-(s1.AvgMarginPct + s2.AvgMarginPct)/2,0)