Study FAQ
Should I replace missing or null values with zero when cleaning Fabric data?
Also asked as 2
- How should Fabric preparation distinguish null, empty, missing, and placeholder values?
- When is replacing null with zero an unsafe data-quality operation?
Answer
Replace a missing or null value with zero only when the business meaning explicitly supports that substitution. Zero is often an observed measurement, while null can mean unknown or not applicable.
Distinguish an absent source field, an empty string, a placeholder such as N/A, a database null, and a failed conversion. Define which conditions may be normalized and which must remain separate. For example, an unknown sale amount should not silently become a zero-value sale; that can distort averages and hide incomplete records.
If an approved rule imputes a value, retain a quality indicator when consumers must distinguish imputed from observed data. Route conversion failures or conflicting placeholders to a measured rejected-record path rather than turning every problem into an indistinguishable null.
Validate missing, explicit null, empty, placeholder, valid zero, and invalid-type cases in the selected engine. Compare accepted and rejected counts and inspect their effect on downstream sums, counts, and averages before publishing trusted data.
Full explanation
DP-600: Transforming and Cleaning Data in Microsoft Fabric
Study guide · DP-600
Read the full explanation