Skip to content
Learn › Explore your data › Data quality report: open the docs menu

Fix duplicates, missing values and outliers

The Data Quality Report never changes your data or adds tasks: you build the fixes as steps in the pipeline. Each fix below matches a low dimension score. See How the pipeline works for adding steps, and Data quality report for finding the problems.

Remove duplicate rows (low Uniqueness)

Duplicates usually come from a source exporting the same records twice, a refresh running twice before deduplication, or files combined without deduplication.

  1. Add a Remove Duplicate Rows step after your data source.
  2. Under Evaluate duplicates from, choose the columns that decide whether two rows match (for example transaction ID, or customer ID + date).
  3. Apply the step, then compare the row count before and after.

More: Remove duplicates and check data.

Handle missing values (low Completeness)

Nulls come from optional fields left empty, left joins with no match, or cells skipped on import. Before removing null rows, check what share of the data they are: a high null rate often means a collection problem at the source.

StrategyWhen to usePipeline step
Replace nulls with a default0 is meaningful, or a text placeholder is acceptableFill Missing Values: choose the column and how to fill it
Remove rows with nullsAnalysis needs complete recordsConditional Filter: keep rows where each critical column has a value
Leave nullsNull means "not applicable"None; note what null means in the dataset description

Fix data type mismatches

Dates stored as text ("January 15, 2024"), numbers with symbols ("$1,250.00"), or "Yes"/"No" in place of true/false make sorting, filtering and calculations misbehave.

  1. Add a Convert Column Type step.
  2. Select the column and choose the target type.
  3. For dates, give the format the text is written in.
  4. For numbers with currency symbols, first add a Find & Replace step to strip them, then convert.

More: Column types.

Deal with outliers (Accuracy)

Outliers can be real extremes or errors, such as 99999 entered as a placeholder. Check the actual values before removing anything, and ask the data owner: removing valid outliers makes analysis misleading.

StrategyWhen to usePipeline step
Remove outlier rowsEntry errors or test dataConditional Filter: keep rows below an upper bound you choose after investigating
Cap outlier valuesReal values that should be limited for analysisMath Function in SQL mode, for example CASE WHEN amount > 10000 THEN 10000 ELSE amount END
Flag and keepReal, meaningful values to markLabel & Insert Values to label rows meeting a condition, or keep them and filter in the dashboard

Standardize inconsistent text (Consistency)

  1. Add a Text Formatting step and use Change text case to normalize case.
  2. Add a Find & Replace step to map variants such as "USA" and "United States" to "US" (repeat for each variant).
  3. Add a Text Formatting step with Normalize whitespace to remove extra spaces.

More: Work with text and JSON and Find and replace values.

Apply several fixes in the right order

  1. Types first: null counts and outlier detection depend on the right type.
  2. Duplicates second: so filling nulls doesn't create false completeness.
  3. Nulls third: decide which to fill or remove.
  4. Standardize values last.

Generate the report again after each group of fixes, or after every 3–4 tasks, to track progress and avoid over-fixing.

Was this page helpful?

Something wrong? support@mammoth.io