Skip to content

Systems and records

Unit changes in a business dataset: keep the original, date the factor

By SourceX Editorial · Updated

9 sections

Short answer

To handle unit changes in a business dataset, never overwrite the recorded quantity. Keep the original value and unit text, add a normalized quantity in one base unit, and store the factor, its source document and the dates it applied. A unit is a dated property, so one conversion table applied to all history turns a supplier's pack-size change into a demand trend that never happened.

Record timeline

Unit changes business

This page covers unit changes in a business dataset: keep the original, date the factor.Illustrative

Key takeaways

  • A unit is a dated property: the same unit code can hold different contents before and after a supplier or system change.
  • Keep source quantity and unit text untouched, add a coded unit and a normalized quantity, and record factor, offset, factor source and validity dates.
  • One factor applied to all history turns a 12-to-10 case-pack change into a fake 20 percent jump or a 17 percent dip.
  • Grade each unit fact as recorded, inferred or missing; inferred factors guide review, not labels.
  • Keep the source unit whenever documents quote it, the unit may have caused the error, the factor changed or the conversion is inexact.

What goes wrong when unit changes hit a business dataset mid-history?

The conversion that was right for one period gets applied to another, and the error looks like a real business change. A unit is not a fixed property of a field: suppliers change case packs, items get re-based from eaches to boxes, and billing moves from hours to quarter hours. When records from before and after such a change are combined under one conversion table, every quantity on one side of the switch is wrong by the same ratio.

Take an illustrative stocked item bought by the case. Until the end of March the supplier packed 12 to a case; from April it packed 10, and the purchase unit code stayed CS throughout. Converting all history at 12 per case inflates every order after the switch by 20 percent, so a flat business appears to grow. Converting at 10 deflates the earlier months by about 17 percent instead. No single factor is right for both periods.

Organizations outside AI already treat a size change as an event to record rather than noise to smooth. The GS1 GTIN Management Standard requires a new GTIN for any change to the legally required declared net content printed on a pack, because shelf labels and unit prices depend on it. The U.S. Bureau of Labor Statistics restates prices per standard size, usually per ounce, so a smaller package at an unchanged price enters the CPI as a price increase; its worked example, a half-gallon of ice cream shrinking to 60 ounces, comes out as a 6.7 percent rise per ounce. A combined operational dataset needs the same discipline: restate quantities in one base unit, and keep the change itself as evidence.

Where do unit changes hide in operational records?

Most unit changes leave no flag on the transaction; they sit in item settings, document types and the way a system rounds. Two mainstream ERPs show the pattern. In Microsoft Dynamics 365 Business Central, each item has a base unit of measure, alternate units carry a Qty. per Unit of Measure value, and the base unit can be changed later from the item card. In Odoo, a purchase order can be written in meters while the receipt and other warehouse documents for the same goods show yards, because the system converts the quantity on receipt.

Rounding adds a quieter version of the problem. Business Central's documentation describes a box of six that arrives one piece short: changing the quantity received to five of the six pieces leads to a receipt of 4.99998 pieces unless a quantity rounding precision is set. Units with an offset defeat multiplier-only conversion altogether; the QUDT units vocabulary stores degrees Fahrenheit with a conversion offset of 459.67 alongside a multiplier of about 0.5556.

These are the change types worth searching for before any merge:

Where do unit changes hide in operational records?
Change typeHow it appears in recordsIllustrative exampleWhat to preserve
Pack size changeSame unit code, different contents after a dateCS means 12 until March, 10 from AprilContents per pack with valid-from and valid-to dates
Base unit re-basedOlder quantities stored in a unit the item no longer usesStock unit moved from EA to BOXThe base unit in force when each record was written
Document-level unitsOrder, receipt and invoice for one shipment disagreeOrdered in meters, received in yardsEach document's own unit, plus the link between documents
Billing increment changeDuration fields change grain with no schema changeLabor billed per hour, then per quarter hourThe increment rule and the date it changed
Price basis changeUnit price quoted per 100 or per pack instead of per eachScrews priced per 100 after a catalog updateThe price basis beside every unit price
Rounding and offsetsValues a hair off whole numbers; mixed temperature scales4.99998 pieces; Fahrenheit beside CelsiusRounding precision, and the offset as well as the multiplier

The unit regime ledger: fields every normalized quantity should carry

Store each quantity three ways at once, as recorded, as coded and as normalized, with the conversion that links them. The recorded value and unit text are evidence and never change. The coded unit makes them comparable: HL7 FHIR's Quantity type, for instance, separates a human-readable unit from a coded unit and its code system, and cautions that the readable text cannot be assumed to be a valid code. UN/CEFACT Recommendation 20 supplies standard codes for units of measure used in trade, units of count among them.

The normalized value is derived, so it carries its derivation: the factor, any offset, where the factor came from and the dates it was valid. Call one such conversion and its validity window a unit regime. A pack change closes one regime and opens the next, and every record is converted by the regime in force on its business date, not on the day of export.

Use these fields as the schema for any combined quantity column:

The unit regime ledger: fields every normalized quantity should carry
FieldWhat it holdsIllustrative valueRule
source_quantityThe number exactly as the source recorded it40Never edited; corrections go in new fields
source_unit_textThe unit string as written in the recordCSKept verbatim, local codes and typos included
unit_codeA coded unit from a published listA Recommendation 20 codeLeft empty when the text cannot be mapped; never guessed
regime_idThe conversion regime in force on the business dateITEM-4471-R2Chosen by business date, not export date
factor and offsetMultiplier, plus an offset where the scale needs one10 and 0Exact values, no rounding before multiplying
factor_sourceThe document that establishes the factorItem card change log; supplier pack noticeRequired for every regime; regimes without one are flagged
valid_from and valid_toDates the regime applied2025-04-01 to openNo gaps or overlaps for one item and unit
normalized_quantity and statusValue in the base unit, marked exact, derived, inferred or unresolved400 EA, derivedInferred and unresolved values kept out of labels by default

How far can one undated conversion factor move a trend?

Far enough to manufacture a growth story. In the illustrative item from the first section, the business sells 1,200 units a month throughout. Orders run at 100 cases a month while a case holds 12, then at 120 cases a month once it holds 10.

Normalized with the right regime for each month, the series stays flat at 1,200 units. Normalized with the old factor of 12 everywhere, the three months after the switch read 1,440, a 20 percent jump that never happened. Normalized with the new factor of 10 everywhere, the three months before it read 1,000, an apparent dip of about 17 percent. A forecasting model, a reorder agent or an analyst working from either single-factor series learns a demand shift that was really a packaging decision.

Price behaves the same way. If the price per case holds while the pack shrinks, the price per unit has risen, which is exactly how the BLS records it. A dataset that keeps only price per case hides the increase; one that keeps only a normalized price hides why it happened. Keep both, tied to the regime.

A line chart of monthly units sold for an illustrative item whose case pack changes from 12 to 10 after month 3: the regime-aware series stays flat at 1,200, converting everything at 12 jumps to 1,440 after the switch, and converting everything at 10 dips to 1,000 before it.
One conversion factor applied to all history fakes a trend in one direction or the other. Illustrative values.

Annotated minimal task packet: a reorder decision across a case-pack change

A task packet holds only what a reviewer needs to judge one decision, plus the unit context that makes its numbers mean what they meant that day. The illustrative task: on 14 April a buyer ordered 40 cases of the item, two weeks before the next scheduled order. Was that the right quantity?

Everything here is invented. What stays out matters as much as what goes in: the full supplier email thread, old price lists and the item's complete sales ledger are left behind, because none of them changes the verdict once the regime and the demand rate are pinned down. Graded with the old factor, the same order would look 80 units larger than it was.

The packet, element by element:

Annotated minimal task packet: a reorder decision across a case-pack change
Packet elementContent (illustrative)Unit context keptWhy it is in the packet
The decisionPurchase order line: 40 CS, placed 14 AprilSource text CS; regime R2, 10 per case, by order dateIt is the action being judged
Regime historyR1: 12 per case to 31 March; R2: 10 per case from 1 AprilFactor sources: supplier notice; item card updated 3 AprilWithout it, 40 CS could mean 480 or 400 units
Factor evidenceOne supplier notice announcing the new packExcerpt only, sender reduced to a roleProves R2 and its start date
Stock position260 EA on hand when the order was placedBase unit EA, no conversion neededSets the need the order had to cover
Demand rate3,600 EA sold in the prior 90 days, about 40 a dayRetail sales in EA; wholesale lines in CS, converted by sale dateShows the two weeks of cover the order needed
Outcome100 EA still on hand at the next order; no stockoutBase unit EALets a grader confirm the decision held

Context completeness map: is the unit history good enough to label?

Grade each unit fact the packet depends on as recorded, inferred or missing, and let the grade set what the record may be used for. A recorded fact has a dated source document. An inferred fact is reconstructed, for example from a step in order quantities or from a price per case that moves while the price per unit holds. A missing fact cannot be established at all.

Inferred factors are good leads and weak labels: a step in a series can also come from a promotion or a lost customer. Confirm them with the item owner or a supplier document before a record built on them enters an evaluation set, and say plainly in the dataset card which facts stayed inferred.

The completeness map for the illustrative reorder packet:

Context completeness map: is the unit history good enough to label?
Unit factGradeEvidenceEffect on use
Unit of the decision quantityRecordedCS on the order lineUsable as is
Contents per case on the order dateRecordedSupplier notice and the item card change logUsable for training and evaluation
Exact start of the new packInferredNotice says 1 April; item card changed and first receipt counted at 10 on 3 AprilOrders placed 1 to 3 April flagged for review
Units on wholesale sales linesRecordedCS on each invoice lineConverted by sale date
Rounding precision on receiptsMissingSetting not included in the exportReceipt quantities screened for residues before use
Unit of the safety stock settingMissingPlanning field has no unitLeft out of the packet; reviewers told it is unknown

Keep both units or keep one? Testing the simpler alternative

The simpler alternative is to normalize everything, discard the source units and drop any history the factors cannot explain. It has a real case: every extra field and join is one more thing to validate, and a supplier email pulled in to prove a factor brings names, signatures and unrelated threads with it.

Keep the source unit anyway when any of four conditions holds. The task asks a model or agent to read source documents, which quote the old unit. The unit itself may have been the mistake, as when a buyer ordered 40 cases believing they still held 12. The factor is specific to the item or changed during the history. Or the conversion is inexact, so normalized values carry rounding residue that only the source explains.

Drop or quarantine instead when the factor cannot be established and the task does not need that period, and record the exclusion with its row count so a buyer can see the hole. To limit linkage risk, join only the single document that proves a factor, reduce the people in it to roles, and leave the rest of the thread behind.

Checks that prove a unit-preserving merge held

Run these on the combined dataset before any labeling; each failure should name the record and the regime involved:

  • Recompute every normalized quantity from source quantity, factor and offset; any mismatch fails the record.
  • Reconcile totals per regime to the source system's own report in source units, period by period.
  • Look for level shifts at regime boundaries: a normalized series that steps exactly where a regime changes points to a wrong factor.
  • Compare price per pack with price per base unit across each boundary; a smaller pack at an unchanged pack price is an effective price change and should be recorded as one.
  • Flag values within 0.001 of a whole number and confirm a rounding explanation, such as the 4.99998-piece receipt.
  • Refuse multiplier-only conversion for any unit whose scale needs an offset.
  • Count unresolved units and report them instead of imputing, and keep them out of labels.

Putting unit provenance into a dataset requirement

A buyer who needs quantities across a unit change should write that into the requirement, because most exports carry today's item settings rather than the settings in force when each record was written. Name the quantity fields, ask for the item unit history or a statement that none was kept, ask for each document's own unit, and state the acceptance test: on a sample, normalized values recomputed from the delivered factors must match the source system's reports.

SourceX assembles each dataset from U.S. businesses against a buyer's written requirement rather than selling from an inventory, so a unit-provenance clause shapes the extraction itself. Whether a particular company kept its item settings history is something only its records can show, and it is checked dataset by dataset. The company holding the records approves the scope and terms and signs before any of them are delivered.

Frequently asked questions

Should an AI dataset store quantities in the source unit or a normalized unit?

Both. The source quantity and unit text are evidence and stay untouched; the normalized quantity is a derived field that carries its factor, factor source and validity dates. Keeping only the normalized value hides unit errors and makes the conversion impossible to audit later.

How can you detect a unit change nobody documented?

Look for level shifts in a quantity series at a single date, price per pack moving while price per unit holds, new product identifiers for an existing item, and receipts counted in a different pack than the order assumed. Each is a lead rather than proof, so confirm it with the item owner or a supplier document before relabeling.

Is a pack-size change a new product?

For retail trade items, the GS1 GTIN Management Standard requires a new GTIN when the declared net content changes, so the identifier changes. Many internal ERP item codes do not change, which is why a combined dataset should link old and new identifiers and record the pack change as a dated event.

What is conversion provenance?

It is the record of how a normalized number was produced: the source value and unit, the factor and offset applied, the document that establishes the factor and the dates that factor was valid. With it, anyone can recompute the normalized value and see which regime it came from.

Do unit changes matter for training agents, or only for analytics?

They matter more for agents, because an agent acts on the numbers. A reorder or quoting agent trained on single-factor history learns a demand shift that never happened, and one evaluated without regime context can be marked wrong for a decision that was right.

Sources

  • The GS1 GTIN Management Standard requires a new GTIN for any change to the legally required declared net content printed on a pack. Source
  • BLS computes an effective price per standard size, so a package that shrinks at an unchanged price is recorded as a price increase; a half-gallon of ice cream cut to 60 ounces is a 6.7 percent rise per ounce. Source
  • Business Central items have a base unit of measure that can be changed, alternate units carry a Qty. per Unit of Measure value, and receiving five of six pieces in a box can post 4.99998 pieces without a rounding precision. Source
  • Odoo converts a purchase unit to the inventory unit on receipt, so a purchase order in meters can be received and recorded in yards. Source
  • The QUDT units vocabulary records degrees Fahrenheit with a conversion multiplier of about 0.5556 and a conversion offset of 459.67. Source
  • HL7 FHIR's Quantity type separates a human-readable unit from a coded unit and code system, and notes that the readable unit cannot be assumed to be a valid code. Source
  • UN/CEFACT Recommendation 20 provides codes for units of measure used in international trade, including units of count, for manual and automated information exchange. Source

Tell us what data you need

Share scope, volume, format, timing and licensing needs. Datasets are sourced on request.

See if your company qualifies