Freight Cost Distortion Agent (Reference)

The Freight Cost Distortion Agent helps identify products with disproportionately high freight costs relative to their price or margin, making hidden margin leakage visible. It benchmarks products against category peers and highlights where freight cost correction or pricing action is needed.

List of Required Fields

The following table lists the set of transaction fields required for the Freight Cost Distortion Agent to compute its metrics and detection rules. Ensure these fields or equivalent are available and consistently populated in your source Transaction Datamart before deploying the Agent. Those exact field names are not required, but a similar fields with that data is required.

Name

Label

Description

Freight_Cost

Freight Cost

The actual internal cost incurred to ship the product. A gap between this and Freight Charge indicates freight subsidy or overcharge.

GrossMargin

Gross Margin

The absolute margin in value terms (Revenue minus Cost of Goods Sold), before overhead allocation.

InvoicePrice

Invoice Price

The price actually charged to the customer on the invoice. The realized transaction price.

PricingDate

Pricing Date

The date on which the transaction or pricing event occurred.

ProductGroup

Product Group

A category grouping products by type, business line, or market segment.

ProductId

Product Id

A unique identifier for the product or SKU.

ProductName

Product Name

The display name of the product or SKU.

Definition

Series 1 (Revenue and Margin by Product)

Item

Value

Description

Data Label

Revenue and Margin by Product

Sets a label (name) of the Series 1 data series (data set). The label can be freely customized and renamed according to your preferences.

Data Source

[DM] Standard Sales Data (Standard_Sales_Data)

Selected Transaction Datamart. For more information see Required Customer Data.

Currency

USD

Defines which currency the money data will be converted into.

Group By

Group By

Level

Product Id

Level 1

Product Name

Level 2

Product Group

Level 3

The specific field names may vary depending on the set of fields in your source Transaction Datamart. The selected fields will be utilized to establish the grouping hierarchy in the Summary Table of the Current Period Series. For additional information about grouping, see the Group section

Measures

Measure

Label

Aggregation

Name

Description

Invoice Price

Revenue

Revenue

The aggregated sum of invoice price (realized revenue) for all included transactions in the group.

Gross Margin

Profit

Profit

The aggregated sum of gross margin for all included transactions (revenue minus cost).

Gross Margin

Avg Margin %

{ }

AvgMarginPct

The weighted average gross margin percentage, computed as total gross margin divided by total revenue for the group.

Freight Cost

Current Freight Cost Rate

{ }

FreightCostRate

The average freight cost rate for the group, typically expressed as freight cost divided by revenue or margin.

Freight Cost

Freight To Margin Ratio

{ }

FreightToMarginRatio

The ratio of freight cost to gross margin, used to detect products where freight costs consume a disproportionate share of margin.

The specific measures may vary depending on the set of fields in your source Transaction Datamart.

Filters

Filters are criteria applied to transactional data to ensure only valid records are analyzed, commonly excluding zero-value transactions and constraining invoice dates using relative ranges computed from a configurable anchor date, specified as N months ago.

Example

The rule applies a relative date filter, keeping only transactions whose pricing date falls within the last three months, so the analysis reflects current freight cost behavior rather than legacy data

Pricing Date > custom N months ago 3 (1/22/2026)

Summary Table

Product Id

Product Name

Product Group

Revenue

Profit

Avg Margin %

Current Freight Cost Rate

Freight To Margin Ratio

A9N17518

iDPN - circuit breaker - iDPN N - 1P + N - 13A - B curve

Electrical Protection and Control

612825.926717546

8965.7502032282

0.0146301744

0.0735295513

5.0258834342

A9N17581

iDPN - circuit breaker - iDPN N - 3P + N - 13A - B curve

Electrical Protection and Control

2272087.49864711

55946.1522209896

0.0246232384

0.0734444177

2.9827277978

  • Product Id – The top-level grouping dimension selected in the Group By definition. Rows are organized by Product ID.

  • Product Name – The product name used as the next grouping level within the table hierarchy.

  • Product Group – The product category grouping products by type, business line, or segment.

  • Revenue – The aggregated sum of invoice price for all included transactions in the group.

  • Profit – The aggregated sum of gross margin (revenue minus cost) for all included transactions in the group.

  • Avg Margin % – The weighted average gross margin percentage for the group, computed as total margin divided by total revenue.

  • Current Freight Cost Rate – The average freight cost rate for the group, representing freight cost relative to revenue (or quantity) over the selected period.

  • Freight To Margin Ratio – The ratio of freight cost to gross margin, highlighting how much of the margin is consumed by freight cost for each product.

Series 2 (Averages by Product Group)

Item

Value

Description

Data Label

Averages by Product Group

Sets a label (name) of the Series 2 data series (data set). Data label can be freely customized and renamed according to your preferences.

Data Source

[DM] Standard Sales Data (Standard_Sales_Data)

Selected Transaction Datamart. For more information see Required Customer Data.

Currency

USD

Defines which currency the money data will be converted into.

Group By

Group By

Level

Product Group

Level 1

Measures

Measure

Label

Aggregation

Name

Description

Gross Margin

Avg Margin %

{ }

AvgMarginPct

The weighted average gross margin percentage for each Product Group (total margin / total revenue).

Freight Cost

Avg Freight Cost %

{ }

FreightCostRate

The average freight cost rate (for example, freight cost as a share of revenue) for the product group.

Freight Cost

Average Freight To Margin Ratio

{ }

AVGFreightToMarginRatio

The average freight-to-margin ratio within the Product Group, used as a benchmark for individual products.

Freight Cost

IQR Freight To Margin

{ }

IQRFreightToMargin

Interquartile range of freight-to-margin ratio within the group, capturing dispersion and supporting outlier thresholds.

Freight Cost

Q3 Freight To Margin Ratio

{ }

Q3FreightToMargin

Third-quartile freight-to-margin ratio indicating the upper bound of “normal” freight burden within the group.

Freight Cost

Freight To Margin 90th Percentile

{ }

FreightToMargin90Percentile

90th percentile of freight-to-margin ratio, used to understand extreme but still typical high-freight cases.

Freight Cost

Q3 Freight %

{ }

Q3FreightRate

Third-quartile freight cost rate, used to suggest target or maximum freight % for products in the group.

Filters

Filters are criteria applied to transactional data to ensure only valid records are analyzed, commonly excluding zero-value transactions and constraining invoice dates using relative ranges computed from a configurable anchor date, specified as N months ago.

  • Date window – Include transactions where the Invoice Date falls between the chosen anchor date, to isolate a three‑month historical window.

  • Value sanity checks – Include only records, so that analyses consider meaningful, billable transactions.

  • Cost-focused analyses – When evaluating cost–price alignment, it is reasonable to exclude records with missing or zero cost.

Example

Improves data quality and consistency by preventing incomplete or non-commercial records from biasing freight cost distortion metrics, removes zero-value or null-price rows.

(Pricing Date > custom N months ago 3 (1/22/2026)) AND (Invoice Price > 0) AND (Invoice Price ≠ null)

Summary Table

Product Group

Avg Margin %

Avg Freight Cost %

Average Freight To Margin Ratio

IQR Freight To Margin

Q3 Freight To Margin Ratio

Freight To Margin 90th Percentile

Q3 Freight %

Electrical Protection and Control

0.0125359515

0.0722803341

5.7658434525

0.4548993434

0.6667049349

1.2464118731

0.087324268

Home Automation

0.0138910946

0.0716462397

5.1577101606

0.3473983866

0.5479605246

0.9992350674

0.0856187698

  • Product Group – The top-level grouping dimension selected in the Group By definition. Rows are organized by product category.

  • Avg Margin % – Weighted average gross margin percentage for the product group.

  • Avg Freight Cost % – Average freight cost rate for the product group (freight cost relative to revenue or quantity).

  • Average Freight To Margin Ratio – Average freight-to-margin ratio within the group, serving as a reference level.

  • IQR Freight To Margin – Interquartile range (Q3–Q1) of freight-to-margin ratios, describing the spread of typical freight burden in the group.

  • Q3 Freight To Margin Ratio – Third quartile of freight-to-margin ratios; many detection thresholds use this as an upper bound of expected freight distortion.

  • Freight To Margin 90th Percentile – 90th percentile of freight-to-margin ratios, indicating extreme but still typical high-freight cases.

  • Q3 Freight % – Third quartile of freight cost rate within the group, used as a benchmark for acceptable freight %.

Join Series (Join Series)

Item

Value

Description

Data Label

Join Series

Sets a label (name) of the Join Series data series (data set). The label can be freely customized and renamed according to your preferences.

Definition

Set up the relationship between the series by mapping the matching data columns/dimensions that you would like to include in the definition.

Series

Dimension

Series

Dimension

Revenue and Margin by Product

Product Group

Averages by Product Group

Product Group

Measures

Label

Description

Spread to AVG of Freight To Margin

Difference between the product’s freight-to-margin ratio and the Product Group average freight-to-margin ratio, typically expressed as (Product FreightToMarginRatio − Group Average FreightToMarginRatio). Negative values indicate freight burden below group average; large positive values suggest distortion.

Margin Uplift

Estimated absolute profit improvement that could be realized if the product’s freight burden were reduced to the recommended benchmark (for example, target freight % or freight-to-margin ratio).

Revenue Uplift

Estimated additional revenue impact associated with aligning freight cost assumptions and prices to the recommended freight rate, assuming margin is preserved.

Current Freight %

Actual freight cost rate for the product (Freight Cost / Revenue), based on Series 1 measures.

Suggested Freight %

Recommended freight cost rate derived from Product Group benchmarks (for example, the group Q3 Freight % or a function of it).

Product Group Average Freight %

Benchmark freight cost rate for the corresponding Product Group, taken from Series 2 (Avg Freight Cost % or related percentile).

Threshold Outlier Freight To Margin

Threshold freight-to-margin ratio used to flag outliers, often based on Product Group interquartile range or 90th percentile (e.g., Average + k·IQR or the 90th percentile).

Freight To Margin Ratio

Actual freight-to-margin ratio for the product, copied from Series 1.

Product Margin %

Weighted gross margin percentage for the product from Series 1.

Revenue

Total revenue for the product from Series 1.

Freight % Variance To Group

Difference between the product’s freight % and the Product Group benchmark freight % (Current Freight % − Product Group Average Freight %), highlighting over- or under-spend versus peers.

Summary Table

Product Id [Revenue and Margin by Product]

Product Name [Revenue and Margin by Product]

Product Group [Revenue and Margin by Product]

Spread to AVG of Freight To Margin

Margin Uplift

Revenue Uplift

Current Freight %

Suggested Freight %

Product Group Average Freight %

Threshold Outlier Freight To Margin

Freight To Margin Ratio

Product Margin %

Revenue

Freight % Variance To Group

R9H13601

Resi9 Enclosure 1x13 Modules

Electrical Protection and Control

-1.2771428577

2807.5910179499

2807.5910179499

0.0719110924

0.0796176802

0.0722803341

1.3490539501

0.0719110924

-0.0268083935

364310.520975374

-0.0003692417

R9H13602

Resi9 Enclosure 2x13 Modules

Electrical Protection and Control

-1.2770233761

7733.1361183022

7733.1361183022

0.072030574

0.079677421

0.0722803341

1.3490539501

0.072030574

0.0336831025

1011284.27281753

-0.0002497602

Detection Rules

Detection Rules defines the Agent’s alert conditions and includes scheduling. When conditions are met, actions are triggered during the next Agent run.

info Default thresholds are flexible, adjust as necessary.

Example

Flags products that either have a freight-to-margin ratio above their product-group average (positive spread), indicating disproportionately high freight burden, or are already margin-negative while their freight % is even lower than the group benchmark, highlighting structurally unprofitable items where prices do not cover costs even before fully recovering freight.

Series

Rules

Join Series (Join Series)

(Spread to AVG of Freight To Margin >  0) OR (Product Margin % < 0) AND (Freight % Variance To Group < 0)

Schedule

Set the preferred start date and frequency that you want the Agent to run.

Example

This rule creates a recurring monthly schedule.

Start Date

Period

Interval

4/22/2026 8:55 AM

Month

1

Start Date – The date when the scheduled task will run for the first time.
Period – Period which represents the offset between each run.
Interval – Interval which represents the number of repetitions in a selected period. Allowed characters are 0-9. 0 means one-off run.

Action Definition

Notifications assigned to specific users (The assignment must be made to a genuine system user). For more information see Action Definition.

Example

Summary

Description

Due Date

Assign to

Freight Cost Distortion Agent

Listing Products with freight costs that are significantly higher versus their margin rate for that product group.

in 1 Month

First Name Last Name

Similar Case Handling

  • Period – Defines the time period between potential similar action. Similar case will not be recreated before the defined period. Time unit for the duplicate-prevention window.

  • Interval – Number of periods between similar actions. Similar case will not be recreated before the defined interval. Prevents creating a very similar case for the same context within the defined interval.

Example

Prevents creating a very similar case for the same context within a 3-month period.

Item

Value

Period

Month

Interval

3

Impact Calculation

You can define specific metrics to compute the foreseen impact of the actions. Please only use total absolute value (and not relative values) as those metrics will be aggregated.

Impact Definition

Measure

Impact Type

Realization Rate (%)

Order

Revenue Uplift

Revenue

50

1

Margin Uplift

Profit

40

2

Summary

Review the setup of the Agent, here you can see all the set parameters in one place.

If you are happy with the setup, click Submit for Approval. Once the Agent is approved, it becomes active and starts monitoring your data based on the schedule.

Review the final results in the Summary step.