
MPMS addresses a specific automotive parts-planning question: for each part and market, which vehicles in operation can use that part, and what annual replacement opportunity does that population represent?
The solution uses Databricks and PySpark to resolve vehicle-part matches from fitment rules, retain the rule behind every match, and calculate business-facing measures by part, market and reporting year. It connects vehicle configuration to planning decisions through one traceable chain:
Vehicle configuration → Rule-based part applicability → Eligible fleet → Annual replacement potential → Commercial sales and captured-share measures → Planning decisions
MPMS combines seven inputs. Each has a distinct role in the calculation:
Warranty claims and commercial sales are kept apart on purpose: they are different business events, and blending them would distort market-share measures.
Planning teams need a reliable count of vehicles that can use each part. Producing it is harder than it looks:
MPMS handles each of these explicitly, so the resulting measures can be explained and defended in planning discussions.
Configuration-Aware Matching
MPMS filters to active parts and effective-dated rules, then uses separate Spark matching paths for exact BM+BR, BM-only, BR-only and model-type-level rules. Market restrictions are applied, and a rule matches only when every option it specifies is installed on the vehicle. Keeping each rule type in its own path makes the matching logic explicit and easier to review with fitment owners.
Traceable Applicability
Every match retains the VIN, part number, market, fitment position, matched rule ID and rule version. For any part-and-vehicle result, planners can see which rule supported it and which version of that rule was in force.
Eligible-Fleet Calculation
Applicability is deduplicated to VIN, part and market before it is joined to the eligible fleet. Multiple rule or position matches therefore do not count the same combination repeatedly, and the eligible fleet reflects distinct vehicles rather than distinct matches.
Annual Market Potential
Annual replacement rates by part, market and vehicle age are applied to the eligible fleet, and expected replacement quantities are aggregated by part and market. The rates are supplied as an input dataset and require business approval before production use.
Separate Commercial Measures
Approved warranty claims and commercial sales are aggregated independently. Each remains visible as its own measure, so warranty replacements are never counted as commercial sales.
Captured Share
Captured share relates commercial sales to the market opportunity:
Captured share (%) = Commercial sales quantity ÷ Estimated annual replacement potential quantity × 100
This is the implemented working definition and requires business approval before it is used to drive decisions.
Repeatable Execution
A Databricks Workflow runs a single notebook task that writes nine managed Delta tables in Unity Catalog. The technical bundle, deployed with Databricks Asset Bundles, is named supply-chain-demand-forecasting.
MPMS is organized around business transformations rather than storage layers. Each step turns one planning concept into the next:
1. Parts + Vehicle Configuration + Fitment Rules
Active parts · VIN, market, model type, BM/BR, installed options · effective-dated rules
↓ Match configuration, options, market and dates to fitment rules
2. Rule-Based Applicability
VIN · part · market · fitment position · matched rule ID · rule version
↓ Deduplicate to VIN / part / market, then join the eligible fleet
3. Eligible Fleet + Replacement-Rate Assumptions
Active, eligible vehicles with age · rates by part, market and vehicle-age band
↓ Apply annual replacement rates by vehicle-age band
4. Annual Market Potential
Expected replacement quantity by part and market
↓ Bring in reporting-year warranty claims and commercial sales
5. Separate Warranty Claims + Commercial Sales
Two independent measures for the reporting year
↓ Compare commercial sales with annual replacement potential
6. Part-and-Market Planning View
Eligible fleet · replacement potential · warranty claims · commercial sales · captured share
Delta tables in Unity Catalog hold the outputs; the transformations above define the solution.
Matching correctness is checked by comparing the set of applicable vehicle-part pairs produced by MPMS with the output of an independent, bounded reference implementation. The purpose is to confirm that rule-based matching returns the same set of pairs. It is a correctness check and is not presented as evidence of a runtime improvement; reducing the number of candidate pairs to the applicable pairs is a logical outcome of the rules, not a measured reduction in Spark processing work.
Future Extension: Demand Forecasting
A separate optional forecasting notebook exists but has not been executed; it requires approved monthly demand history. Forecasting is a future extension of MPMS and is not part of the delivered outcomes.
Implemented Capabilities
Decisions the Solution Supports
After validation with approved inputs, MPMS can support planning teams in:
Production Prerequisites
Before production use, the following need to be in place:
MPMS – from vehicle configuration to part-and-market planning decisions