Margin Inconsistency Agent (Reference)

Margin Inconsistency Agent flags products with inconsistent pricing shown by a variability analysis and statistical dispersion analysis using price below specific thresholds.

Definition

Series 1 (Product Margins)

Item

Value

Description

Data Label

Product Margins

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

Data Source

[DM] Transactions (Transactions)

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

Product ID

Level 2

Product Name

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

Margin

Product Margin %

{ }

ProductMarginRate

The average margin rate for a product, calculated as total gross margin divided by total revenue (invoice price) for all included transactions in the selected period. For more information see Product Margin Rate.

Margin

Profit

Profit

The total profit earned from all included transactions, calculated as the difference between the realized price and the cost.

Invoice Price

Product Revenue

ProductRevenue

The aggregated sum of invoice price for all included transactions.

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

Filters

  • The Generic Filter rule includes only records whose Invoice Date is greater than or equal to a rolling point defined as N months ago from a specified reference date.

  • Excludes transactions with very low or zero quantities, ensuring only meaningful sales are considered.

  • Ensures that only transactions with a valid invoice date and sufficient quantity are included.

Example
(Invoice Date < custom N months ago 3 (11/9/2025)) AND (Invoice Date > 0,1) AND (Quantity > 0.1)

Summary Table

Product Group

Product ID

Product Name

Product Margin %

Product Revenue

Profit

AC

DSTI-0057

EPA Filtered Portable Air Conditioner 13,800 BTU, 115V, Stainless Steel

0.252774455

1323318049

334500999

Access Doors

DSTI-0054

Galvanized Powder Coated Steel Roof Hatch, 24"L x 36"W

0.273758803

111652865.5

30565954.8

Air Filters

DSTI-0056

Disposable Fiberglass Filter 8" W X 16" H X 1" D - Pkg Qty 12

0.27625634

6554201.401

1810639.69

  • Product Group – Top-level grouping dimension identifying the product.

  • Product Id – Second-level grouping dimension indicating the product id.

  • Product Name – The Product Name used as the last grouping level within the table hierarchy.

  • Product Margin % – The average margin rate for a product, calculated as total gross margin divided by total revenue (invoice price) for all included transactions in the selected period.

  • Product Revenue – The aggregated sum of invoice price for all included transactions.

  • Profit – The total profit earned from all included transactions, calculated as the difference between the realized price and the cost.e

The specific field names can vary by the source Transaction Datamart. The selected Group By fields define the table’s grouping hierarchy, while the measures determine which aggregated metrics appear as columns.

Series 2 (Product Group Averages)

Group By

Group By

Level

Product Group

Level 1

Measures

Measure

Label

Aggregation

Name

Description

Margin

Average Margin % per group

{ }

GroupAvgMargin

The weighted average margin percentage across all products within a product group, serving as a benchmark for margin comparison.

Invoice Price

Revenue

GroupTotalRevenue

The aggregated sum of invoice price for all included transactions within the Product Group.

Filters

  • The Generic Filter rule includes only records whose Invoice Date is greater than or equal to a rolling point defined as N months ago from a specified reference date.

  • Excludes transactions with very low or zero quantities, ensuring only meaningful sales are considered.

  • Ensures that only transactions with a valid invoice date and sufficient quantity are included

Example
(Invoice Date < custom N months ago 3 (11/9/2025)) AND (Invoice Date > 0,1) AND (Quantity > 0.1)

Summary Table

Product Group

Average Margin % per group

Revenue

AC

0.252774455

1323318049

Access Doors

0.273758803

111652866

Air Filters

0.27625634

6554201.4

Join Series (Margin Comparison)

Definition

Series

Dimension

Series

Dimension

Product Margins

ProductGroup

Product Group Averages

ProductGroup

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

Summary Table

Product Group [Product Margins]

Product ID [Product Margins]

Product Name [Product Margins]

Margin Below Group Average

Revenue Impact if Brought to Average

Current Margin %

Group Margin %

Suggested Margin %

AC

DSTI-0057

EPA Filtered Portable Air Conditioner 13,800 BTU, 115V, Stainless Steel

0

0

0.252774455

0.252774455

0.252774455

Access Doors

DSTI-0054

Galvanized Powder Coated Steel Roof Hatch, 24"L x 36"W

0

0

0.273758803

0.273758803

0.273758803

Air Filters

DSTI-0056

Disposable Fiberglass Filter 8" W X 16" H X 1" D - Pkg Qty 12

0

0

0.27625634

0.27625634

0.27625634

  • Product Group – Top-level grouping dimension identifying the product.

  • Product ID – Second-level grouping dimension indicating the product id.

  • Product Name – The Product Name used as the last grouping level within the table hierarchy.

  • Margin Below Group Average – The difference between a product’s current margin percentage and its product group’s average margin percentage. For more information see Margin Below Group Average.

  • Revenue Impact if Brought to Average – The estimated additional revenue that could be realized if a product’s margin were improved to match the group average, holding current sales volume constant. For more information see Revenue Impact if Brought to Average.

  • Current Margin % – The product’s current average margin percentage, calculated as total gross margin divided by total revenue for the selected period. For more information see Current Margin Rate.

  • Group Margin % – The average margin percentage for the entire product group, used as a reference or benchmark for individual product performance. For more information see Group Margin Rate.

  • Suggested Margin % – The recommended interim margin rate, typically set at the midpoint between the current margin rate and the group average margin rate. For more information see Suggested Margin Rate,

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.

This rule flags any grouped row whose current-period margin percentage exceeds the chosen threshold, so detections will be generated and actions triggered on the next scheduled run when that condition is met.

Example

Series

Rules

Join Series (Margin Comparison)

(Margin Below Group Average > 0.05) AND (Revenue Impact if Brought to Average > 1,000)

info Default thresholds are flexible, adjust as necessary.

Schedule

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

Example

Start Date

Period

Interval

08/12/2025 10:28

Day

7

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

Margin Variability Outlier Analysis

Flags products with inconsistent pricing shown by a variability analysis.

So listing products well below the Product Group average and those products back half way to average margin to generate additional revenue.

Same day next week

First Name Last Name

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 Impact if Brought to Average

Revenue

20

1

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.