Zum Inhalt springen

Lektion 25 · Projects and Reference

Project: Customer Deduplication

Design an Alteryx deduplication workflow with standardizing, exact and fuzzy matching, grouping, a survivorship rule and a human review queue.

Two customer lists are being merged after a system change. The same person may appear several times with different spellings. Your task is to find likely duplicates, build one clean record per person and send uncertain cases to a reviewer.

This project practices cleaning, matching, grouping and careful decision rules. All records are invented. Never practice on real customer data without permission.

Requirements

Item Rule
Input id, name, email, city, updated
Strong match Same cleaned email
Weak match Similar name and same city
Output One master record per strong group
Review Weak matches go to a review file, not auto-merged
Audit Keep original IDs for every master record

An email is a strong signal here, but not always. Families and teams sometimes share addresses. Ask the data owner about this before you accept the rule.

The design

flowchart LR
  I["Input"] --> S["Standardize"]
  S --> E["Exact match<br/>on email"]
  E --> M["Master records"]
  S --> F["Fuzzy Match<br/>name within city"]
  F --> R["Review queue"]

Strong evidence merges automatically; weak evidence goes to a person.

In Designer:

  1. Use Record ID if the source IDs are not unique across systems, and record the source system.
  2. Clean with Data Cleansing and Formula: lowercase email, trim, collapse spaces in names.
  3. Sort by email and updated descending, then use Unique on email to pick the newest row. Handle empty emails separately, because many empty values must not become one customer.
  4. Use Summarize (Group By email) to collect original IDs with Concatenate and count them.
  5. Send names and cities to Fuzzy Match (see fuzzy matching) and output pairs with scores to a review file.

Stand-in: standardize and merge by email

Python Stand-in: exact matching with a survivorship rule

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Notice the special handling of blank emails. Without it, every customer with no email would merge into one wrong record.

Stand-in: the review queue

Python Stand-in: weak matches for human review

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Maria and Mario are very similar strings but probably different people. This is exactly why weak evidence must go to a human.

Survivorship rules

A survivorship rule chooses which value wins for each field. "The newest row wins" is simple, but a newer row may have a blank city. A better rule is: newest non-empty value per field.

Python Stand-in: newest non-empty value per field

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

In Designer you can get this by sorting newest first, then using Summarize with First on each field after turning blanks into null, if the First action in your version skips nulls. Test this on sample rows. If it does not, filter non-empty values per field and join the results.

Quality checks

  • Every input ID appears in exactly one master group.
  • Group sizes: investigate unusually large groups first.
  • Sample automatic merges and review them by hand.
  • Run the workflow twice: it should give the same masters.

Privacy and safety

Deduplication touches personal data. Limit access, delete temporary copies when you are done, follow your company's retention rules and keep an audit trail that lets you undo a wrong merge. Do not send names and addresses to external AI services without approval.

Do not overwrite the source systems with merged records until a person has approved the results and you have a backup.

Stretch goals

  1. Add a match decision file (accept or reject) that reviewers edit, and apply it on the next run.
  2. Add a country-specific phone cleanup.
  3. Report how many records were merged, kept and sent to review.

Why exact first, fuzzy second

Running the strict rule before the loose one has two advantages. It removes the easy duplicates, so fewer pairs need similarity scoring. It also gives you cleaner records to compare, because each master record can hold the best available name and city.

Think about chains as well. If one person changed email addresses, the exact rule produces two masters. The fuzzy step may propose to connect them, and the reviewer then needs enough context to decide: both names, both cities, both update dates and the original IDs. Show these side by side in the review file, and add an empty decision column with a fixed set of values such as same, different and unsure.

Treat unsure as "do not merge". It is usually much easier to merge two records later than to separate data that has been mixed together.

Handling the second run

Real lists keep changing. On the next run, previously reviewed pairs should not appear in the queue again. Store each decision with the two original IDs, join the new candidate pairs to that history and send only the unmatched pairs to review. If either record changed a lot since the decision, you may want to ask again.

Report the result

End with a short summary that a data owner can approve: input records, records merged by exact email, pairs sent to review and records left unchanged. Include a few masked examples of each. If the number of automatic merges is much higher than expected, stop and investigate before anyone uses the master list. A shared placeholder such as [email protected] is a classic cause, so check the most frequent email values first.

Practice task

Extend the sample list with six more invented records. Include two people who share an email address, one person with two different email addresses and a record with no email and no city. Decide the expected master records and review pairs before you run your workflow.

Compare the result with your expectation. The shared address should make you question the exact-email rule: what extra evidence would you require, and how would the workflow send such cases to review instead of merging them? Write the new rule in one sentence, add it to the design and rerun all your earlier test records to check that nothing else changed.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. Why treat blank emails specially?

    A blank value is not evidence that two people are the same.
  2. 2. What should happen to a weak, similar-name match?

    Similar names are not proof of identity.
  3. 3. What is a survivorship rule?

    It defines the winning value for the master record.
  4. 4. Why keep original IDs with each master record?

    An audit trail lets you explain and reverse decisions.

Summary

  • Standardize first, then merge only on strong evidence.
  • Block and score weak matches, and let people decide them.
  • Choose survivorship rules per field and keep original IDs.
  • Protect personal data and make merges reversible.

Next: Alteryx Glossary and Cheat Sheet

Dein Fortschritt wird in diesem Browser gespeichert. Kein Konto nötig.