Product Cost Misalignment Agent (Formula Expressions)

This page provides summary of the Formula Expressions used in the Product Cost Misalignment Agent (Reference).

Average Cost

Definition

:question_mark:

The weighted average unit cost over the selected period, computed as total cost divided by total quantity. This yields a per‑unit cost figure that accounts for varying transaction volumes.

Formula

SUM(Cost)/ SUM(Quantity)

Average Price

Definition

:question_mark:

The weighted average unit selling price over the selected period, computed as total invoice price divided by total quantity. This yields a per‑unit price figure that accounts for varying transaction volumes.

Formula

SUM(Invoice Price)/ SUM(Quantity)

Cost Change

Definition

:question_mark:

The rate of change in the average unit cost from the previous period (P1) to the recent period (P2). A positive value indicates costs increased between periods; a negative value indicates costs decreased.

Formula

s2.CurrentAverageCost / NULLIF(s1.PreviousAverageCost,0) -1

Price Change Rate

Definition

:question_mark:

The rate of change in the average unit price from the previous period (P1) to the recent period (P2). A positive value indicates prices increased between periods; a negative value indicates prices decreased.

Formula

s2.CurrentAveragePrice /  NULLIF(s1.PreviousAveragePrice,0) -1

Price Versus Cost Variance

Definition

:question_mark:

The difference between the period-over-period rate of change in average unit cost and the rate of change in average unit price. This metric quantifies whether cost increases (or decreases) are outpacing price changes between the current and previous periods. A positive value indicates costs have increased more (or decreased less) than prices, suggesting margin compression; a negative value indicates prices have increased more (or decreased less) than costs, suggesting margin improvement.

Formula

s2.CurrentAverageCost / NULLIF(s1.PreviousAverageCost,0) - s2.CurrentAveragePrice / NULLIF(s1.PreviousAveragePrice,0)

Revenue Potential

Definition

:question_mark:

A hypothetical revenue level that realigns price changes with cost changes for the recent period, computed by normalizing recent revenue by the observed price change and scaling it by the observed cost change between periods.

Formula

s2.CurrentRevenue / (1 + s2.CurrentAveragePrice / s1.PreviousAveragePrice) * (1 + s2.CurrentAverageCost / s1.PreviousAverageCost )

Profit Potential

Definition

:question_mark:

A hypothetical profit-impact proxy derived by applying the same realignment logic used for Revenue Potential, using recent revenue normalized by price change and scaled by cost change between periods. As listed in the tutorial, it uses the same formula structure as Revenue Potential.

Formula

s2.CurrentRevenue / (1 + s2.CurrentAveragePrice / s1.PreviousAveragePrice) * (1 + s2.CurrentAverageCost / s1.PreviousAverageCost )

Previous List Price

Definition

:question_mark:

The weighted average list price per unit over the previous period. This metric is calculated by dividing the total list price value by the total quantity sold, providing a per-unit list price that accounts for varying transaction volumes.

Formula

SUM(ListPrice)/NULLIF(SUM(Quantity),0)

Current List Price

Definition

:question_mark:

The weighted average list price per unit over the current period. This metric is calculated by dividing the total list price value by the total quantity sold, providing a per-unit list price that accounts for varying transaction volumes.

Formula

SUM(ListPrice)/NULLIF(SUM(Quantity),0)

List Price Change Rate

Definition

:question_mark:

The rate of change in the average list price per unit from the previous period to the current period. A positive value indicates that list prices increased between periods; a negative value indicates that list prices decreased. This metric helps quantify how list pricing has evolved over time, accounting for changes in transaction volumes.

Formula

s2.CurrentListPrice / NULLIF(s1.PreviousListPrice,0)-1

Suggested List Price

Definition

:question_mark:

A recommended list price for the current period, calculated by normalizing the current list price by the observed price change and scaling it by the observed cost change between periods. This metric estimates what the list price should be if it were adjusted to reflect both price and cost changes from the previous period to the current period.

Formula

s2.CurrentListPrice / (1 + s2.CurrentAveragePrice / s1.PreviousAveragePrice) * (1 + s2.CurrentAverageCost / s1.PreviousAverageCost )

Expected Invoice Price

Definition

:question_mark:

A hypothetical price level for the current period, normalized by the observed rate of change in average price and scaled by the observed rate of change in average cost between periods. This metric estimates what the current average price would be if it were adjusted to reflect both price and cost changes from the previous period, providing a counterfactual benchmark for price alignment with cost movements.

Formula

s2.CurrentAveragePrice / (1 + s2.CurrentAveragePrice / s1.PreviousAveragePrice) * (1 + s2.CurrentAverageCost / s1.PreviousAverageCost )