Start with observed rows for 2024-01-01, 2024-01-02, and 2024-01-04.
The expected daily sequence also includes 2024-01-03, so that date is a gap.
Do not fill the missing date as 0 without a rule. Missing means no observed row, not zero.
A tiny missing-date readout: compare observed dates to an expected daily sequence, flag the gap, and avoid filling it as zero without a rule.
highlighted = computed this step
Load observed dates
Start with 3 observed date rows.
observed dates
Build expected dates
Build the expected daily sequence from first date to latest date.
expected date sequence
Flag the missing date
Flag the date that is in the expected sequence but not observed.
missing date gap
State the fill rule
Rule: do not fill the missing date as 0 without a rule.