Find the records hidden by a clean preview
A supplier export previews correctly yet refresh fails on the last file of the month.
Find the records hidden by a clean preview
A supplier export previews correctly yet refresh fails on the last file of the month. Record the input row count, inspect the failing conversion and decide how an analyst should account for rejected rows.
The narrated price example extends profiling beyond the initial thousand rows to expose defects missed by the preview.
Work through the decision
A file has 1,200 price values. The first 1,000 are valid; six later values cannot be parsed. What is the error rate and where do those rows belong?
Check your reasoning
Six of 1,200 is 0.5%. Profile all rows, retain the six records with their keys, and reconcile accepted plus rejected counts to 1,200. A zero price would mean a free item, so substituting zero needs a business rule.
Decisions and tradeoffs
- Whole-dataset profiling
- A profile over the entire input can reveal errors or rare values outside the preview sample.
- Type conversion using locale
- Interpret numbers and dates using the source culture before assigning their analysis type.
- Keep error rows in a diagnostic query
- Preserve rejected identifiers and source values so repairs and excluded totals can be audited.
- Normalize values before deduplication
- Trim whitespace, standardize case where appropriate and choose a deterministic survivor using the business key.
Separate missing values from failed conversions
Take three source prices: an empty field, the text “unknown” and 0. A missing amount may be valid pending an invoice; the second value fails numeric parsing; the third is a recorded price. Count each group separately. Replacing all three with zero would make a discounted order indistinguishable from an unreadable invoice.
Practice each guide skill
Work through these exercises in the order of the published guide. The checklist numbers are local references.
- Compare count, distinct count, distribution and error rate for a key column across the full dataset.
- Normalize invalid categories and distinguish a missing quantity from an observed zero. Preserve a reason for rejected values.
- Inspect the first failing step and source record; fix a conversion or connection error and reconcile the refreshed row count.
Official objectives for this lesson
Related lesson · Build a sales fact table at a stable grain
Find the records hidden by a clean preview quiz
Answer 3 questions. Check each answer for an explanation.