40. Stage 3: One customer
Weeks four to six. The CFO wants one number for the board: how many customers Harbour Mutual and Kestrel share. Match and merge both customer bases to her target, choose where the golden record lives, and report the figures.
The clip lists the twelve pairs of customers that look alike across the two companies: nine are the same person, three are twins or a namesake. Kestrel's team's run at a threshold of 0.85 merges one pair of twins. The agreed run at 0.90 merges the nine and keeps the three apart, and each golden record takes its name from Harbour Mutual's CRM and its email from the latest record. Last, the CFO's three figures appear: the customers both companies have, Kestrel's customers counted once, and the combined company's customers.
The situation
Harbour Mutual has 40 customers and Kestrel 30 customer records. Twelve pairs look alike across the two; the answer key knows which 9 are the same person. Kestrel's team has already run Match and merge on its own settings, and one of its merges is wrong.
On the agreed settings the match finds 9 shared customers with a precision of 100% and a recall of 100%. The figures go to the CFO as SQL anyone can rerun: the golden records' links as the hub stores them, and Kestrel's customers counted once.
WITH golden_links (customer_id, klant_nr) AS (
VALUES (5, 5), (7, 8), (13, 2), (19, 11), (22, 14), (26, 23), (30, 17), (33, 20), (38, 26)
), kestrel_customers AS (
SELECT MIN(klant_nr) AS klant_nr FROM klanten GROUP BY naam, geboortedatum
)
SELECT (SELECT COUNT(*) FROM golden_links) AS shared_customers,
(SELECT COUNT(*) FROM kestrel_customers) AS kestrel_customers,
(SELECT COUNT(*) FROM customers) + (SELECT COUNT(*) FROM kestrel_customers) - (SELECT COUNT(*) FROM golden_links) AS combined_customersWhy it matters for Alex
The shared-customer figure moves the deal's value: it is the cross-selling the board paid for. Too high, and twins get letters meant for each other; too low, and the board underrates the deal. Alex has to give a figure with its precision and recall, and a hub that can show next quarter how this quarter's figure was reached.
Where it goes wrong
- A threshold to please. Loosening the match until the figure looks good merges twins first.
- The newest record wins everything. Recent is right for an email and wrong for a name typed by the customer.
- Each company's own duplicates forgotten. Matching across the companies does not find a person one company entered twice.
- A figure nobody can rebuild. Without a stored golden record and its history, next quarter's figure cannot be compared with this one.
The stakeholders
- Agnieszka Lis Chief Financial Officer, Harbour Mutual
How many customers do we share with Kestrel? The figure goes to the board, and I need to trust it: no two people counted as one, and nobody we share left out.
- Willem de Boer Kestrel Operations Director, Kestrel
Our team has made a start in Match and merge: a looser threshold of 0.85 so nobody is missed, names from whichever record changed last, and email from your CRM.
The steps
This stage gives you the steps. Later stages give less help: the goal and hints in stages 4 to 6, the situation alone in stages 7 and 8.
- Open Match and merge with the stage's brief: it starts on Kestrel's team's settings. Tune the rules and survivorship until the brief is met, and press Check there.Open the Match and merge
- Back here, report the CFO's three figures.Go to the check
- Choose where the golden customer record lives, and why.Go to the check
- Answer the stakeholders' pushback.Go to the check
The stage's outcome
0 of 4 checks passed. The stage is done when all of them have.
Exercises
The lab checks each one against facts written down in advance, so any answer the brief allows passes. A pass is kept in this browser.
Golden records the board can trust
On both companies' customers, the CFO's target is a precision of 100% and a recall of at least 95%: no two people merged, and almost nobody shared left out. Harbour Mutual's CRM checks each new customer's identity document, so a golden record's name comes from the CRM; customers change their email in Kestrel's app, so the email comes from whichever record changed last. Kestrel's team started with a threshold of 0.85, names from the latest record and email from the CRM.
The lab checks that:
- Precision is 100%: no two different people are merged.
- Recall is at least 95%: the customers both companies share are found.
- Every golden record built from both companies takes its name from the CRM.
- Every golden record's email comes from the record that changed last.
Report the CFO's figures
Choose each figure for the board, on the brief's agreed settings.
Choose the hub style for the board's figure
Where should the golden customer record live, and which way should changes flow? Pass all 1 situations to complete it.
The CFO will report the shared-customer figure to the board every quarter and must show how each one was reached, as it stood on the day. Neither company's policy system may change before the migration in year two, and the first figure is due in twelve weeks.
Answer the stakeholders
Each line is something a stakeholder says as the stage goes on (the thread above). Agree, or push back where the facts say otherwise.
On Azure
Azure has no master data management service of its own; chapter 18's three ways apply. For the merger's first twelve weeks, a consolidation hub in the lakehouse fits:
- The matching in notebooks (Microsoft Fabric or Azure Databricks), its rules and threshold in source control, scored against the answer key on every change.
- The golden record as a gold table with its source keys, kept with history (Delta's time travel and a validity period per row), so a quarter's figure can be rebuilt.
- Microsoft Purview registers the golden customer as a data asset, with its owner, steward and lineage from both companies' sources.
Dynamics 365 Customer Insights - Data or a partner's master data product are the other ways, when customer data needs more than the lakehouse gives.
Take it to work
Customer overlap report
Report how many customers two companies share, how the figure was reached, and where the golden record lives.
Target
- Who uses the figure, and what precision and recall do they need?
Matching
- The rules and threshold, and the scores against the answer key
- Survivorship per attribute, with the reason
Figures
- Customers shared, each company's customers counted once, the combined total
- How anyone can rerun them
Hub
- The hub style, and what it gives up
Tools in this chapter
- Match and merge · Tune matching and survivorship on two customer bases and watch precision, recall and the golden records change.