Why Does Your Anomaly Detection Alert Every Monday?
Most anomaly detection false positives are seasonality the model never learned. How to diagnose them and fix the baseline, with SQL and Python.
Seasonality in data monitoring is the predictable, calendar-driven variation in a metric (lower volume on weekends, a spike at month-end, a dip on public holidays) that a monitor has to expect rather than flag.
If your volume alert fires every Monday morning, it's doing exactly what you told it to: comparing Monday against a baseline that has no idea Mondays are different. Most false positives I've seen in data anomaly detection are this. The model is fine. The baseline is wrong.
This post builds on the data anomaly detection guide, which covers z-scores and baselines, so I won't repeat those.
Why does your anomaly detector fire every Monday?
Because Monday is the one day of the week whose data is shaped by the two days before it, and most simple detectors compare a day against its immediate neighbours.
Four mechanisms produce it. They look identical in Slack, but the fixes differ.
| Mechanism | What the monitor sees | When it fires | Real fix |
|---|---|---|---|
| Day-over-day comparison | Monday vs Sunday: +700% or more | Every Monday, and every Saturday for the drop | Compare against the same weekday, not yesterday |
| Weekday-only job, baseline over last N runs | Monday's run carries Friday night to Sunday, roughly 1.3x to 3x a normal run | Every Monday | Baseline by weekday, or count by event time |
| Monday check scoring "yesterday" | Sunday's partition, the quietest day of the week | Every Monday morning | Same-weekday baseline for the day being scored |
| Freshness on a weekday-only pipeline | 60+ hours since the last load on Monday at 06:00 | Weekend checks, delivered Monday if alerts respect operating hours | Expected-update schedule that knows the job skips weekends |
The first is the most common because it's the easiest to write. "Alert if row count changes more than 50% from yesterday" sounds reasonable until you notice a business with quiet weekends moves more than 50% twice a week, forever.
The second is the sneaky one. A job that runs Monday through Friday has a baseline made entirely of weekday runs, so its standard deviation is tiny. Then Monday's run shows up carrying a weekend's worth of backlog, and a 35% bump looks like a 9-sigma event against a baseline that has never seen variance.
The freshness case is covered in the freshness monitoring guide: an SLA that doesn't know the pipeline skips weekends pages you every Saturday.
What happens when you run the naive methods on a weekly pattern?
I wanted actual numbers instead of intuition, so I generated 12 weeks of daily row counts for a table with a typical B2B shape: weekdays around 10,000 rows, Monday at 1.35x because it catches up on weekend backlog, Friday slightly lower, Saturday and Sunday under 2,000. Each day gets 4% random noise. Then I injected one real incident: a Wednesday where an upstream filter drops 55% of the rows.
Then I scored the last 8 weeks (56 days) with several detectors. The script runs as-is with pandas, numpy, and statsmodels.
import numpy as np
import pandas as pd
from statsmodels.tsa.seasonal import STL
rng = np.random.default_rng(7)
days = pd.date_range("2026-08-03", periods=84, freq="D") # 12 weeks, starts on a Monday
# Mon catches up on the weekend backlog, Sat/Sun are quiet
shape = {0: 1.35, 1: 1.0, 2: 1.0, 3: 1.0, 4: 0.95, 5: 0.18, 6: 0.15}
rows = [10_000 * shape[d.day_of_week] * rng.normal(1, 0.04) for d in days]
df = pd.DataFrame({"day": days, "rows": np.round(rows)})
incident = pd.Timestamp("2026-10-14") # a Wednesday: upstream filter drops 55% of rows
df.loc[df.day == incident, "rows"] *= 0.45
# 1. Day-over-day change: alert if volume moves more than 50% vs yesterday
df["dod"] = df.rows.pct_change().abs() > 0.5
# 2. Pooled baseline: trailing 28 days, alert beyond 3 standard deviations
prior = df.rows.shift(1).rolling(28)
df["z_pooled"] = (df.rows - prior.mean()) / prior.std()
# 3. Same-weekday baseline: compare each day to the previous 6 of the same weekday
df["dow"] = df.day.dt.day_of_week
same = df.groupby("dow").rows.transform(lambda s: s.shift(1).rolling(6).mean())
same_sd = df.groupby("dow").rows.transform(lambda s: s.shift(1).rolling(6).std())
df["z_dow"] = (df.rows - same) / same_sd
# 3b. Same baseline, but floor the stddev at 5% of the mean (six samples is a thin estimate)
df["z_dow_floor"] = (df.rows - same) / np.maximum(same_sd, 0.05 * same)
# 4. STL decomposition: strip the weekly cycle, score the residual robustly
resid = STL(df.set_index("day").rows, period=7, robust=True).fit().resid
mad = (resid - resid.median()).abs().median() * 1.4826
df["z_stl"] = ((resid - resid.median()) / mad).values
scored = df[df.day >= "2026-08-31"] # first 4 weeks are warm-up for every method
for name, flag in [("day_over_day", scored.dod),
("pooled_3sd", scored.z_pooled.abs() > 3),
("same_weekday_3sd", scored.z_dow.abs() > 3),
("same_weekday_floor", scored.z_dow_floor.abs() > 3),
("stl_resid_3.5", scored.z_stl.abs() > 3.5)]:
hits = scored[flag]
caught = incident in set(hits.day)
print(f"{name:18} alerts={len(hits):3} false={len(hits) - caught:3} "
f"caught_incident={caught} weekdays={sorted(hits.day.dt.day_name().str[:3].value_counts().to_dict().items())}")
The results over 56 scored days:
| Detector | Alerts | False positives | Caught the incident? | Where the alerts landed |
|---|---|---|---|---|
| Day-over-day, 50% change | 18 | 17 | Yes | 8 Mondays, 8 Saturdays, the incident, the Thursday after it |
| Pooled 28-day, 3 sigma | 0 | 0 | No | Nowhere |
| Same-weekday, 3 sigma | 2 | 1 | Yes | The incident, one ordinary Tuesday |
| Same-weekday, 3 sigma, stddev floor | 1 | 0 | Yes | The incident only |
| STL residual, robust z > 3.5 | 8 | 7 | Yes | Scattered, 2 Mondays |
Day-over-day fired on every Monday and every Saturday: the "every Monday" alert in its purest form. It also fired the Thursday after the incident, because recovering from a 55% drop is a 120% jump. Day-over-day double-counts every incident, once for the break and once for the fix.
The pooled baseline is the more dangerous result. Zero false positives looks great on a dashboard. It also caught nothing, including a Wednesday that lost more than half its rows, and dropping to 2 sigma didn't change that.
Why does a wider window make it worse?
Because mixing weekdays and weekends into one distribution inflates the standard deviation until the band is useless.
On the incident day, the trailing 28-day mean was 8,087 rows and the standard deviation was 4,375. That stddev isn't noise. It's the weekly cycle, misread as noise. A 3-sigma band runs from about negative 5,040 to 21,200 rows, which means a row count of zero on a Wednesday would have passed. The actual incident, 4,417 rows, scored a z of negative 0.84. Not even close to an alert.
This is the trap teams fall into after a few weeks of Monday alerts. They widen the window from 7 days to 28, or bump the threshold to 3 sigma, the alerts stop, and everyone moves on. They've traded a loud false positive for a silent false negative. The missed Wednesday is the one that ends up in a postmortem.
Compare that to the same-weekday baseline. The incident Wednesday was measured against six prior Wednesdays averaging 10,050 with a stddev of 519, and scored a z of negative 10.9. Same data, same threshold, opposite outcome.
The general rule: seasonality you don't model shows up as either false positives or inflated variance, and inflated variance hides real incidents. There's no setting of a pooled threshold that gets both right on a strongly weekly table.
How do you build a day-of-week baseline in Snowflake and Databricks?
Partition the window by weekday. That one change does most of the work.
Both queries below count rows per load day for the last 120 days, compare each day against the previous 8 occurrences of the same weekday, floor the stddev at 5% of the mean, and return yesterday if it's more than 3 sigma out. Swap _loaded_at and the table name for your own.
Snowflake:
WITH daily AS (
SELECT CAST(_loaded_at AS DATE) AS day, COUNT(*) AS row_count
FROM analytics.public.orders
WHERE _loaded_at >= DATEADD(day, -120, CURRENT_DATE())
GROUP BY 1
),
scored AS (
SELECT day, row_count,
AVG(row_count) OVER (PARTITION BY DAYOFWEEKISO(day) ORDER BY day
ROWS BETWEEN 8 PRECEDING AND 1 PRECEDING) AS base_mean,
STDDEV_SAMP(row_count) OVER (PARTITION BY DAYOFWEEKISO(day) ORDER BY day
ROWS BETWEEN 8 PRECEDING AND 1 PRECEDING) AS base_sd,
COUNT(*) OVER (PARTITION BY DAYOFWEEKISO(day) ORDER BY day
ROWS BETWEEN 8 PRECEDING AND 1 PRECEDING) AS base_n
FROM daily
),
z AS (
SELECT day, row_count, base_mean, base_n,
(row_count - base_mean) / GREATEST(base_sd, 0.05 * base_mean) AS z_score
FROM scored
)
SELECT *
FROM z
WHERE day = DATEADD(day, -1, CURRENT_DATE())
AND base_n >= 6
AND ABS(z_score) > 3;
Databricks SQL:
WITH daily AS (
SELECT CAST(_loaded_at AS DATE) AS day, COUNT(*) AS row_count
FROM main.analytics.orders
WHERE _loaded_at >= date_sub(current_date(), 120)
GROUP BY 1
),
scored AS (
SELECT day, row_count,
AVG(row_count) OVER (PARTITION BY weekday(day) ORDER BY day
ROWS BETWEEN 8 PRECEDING AND 1 PRECEDING) AS base_mean,
STDDEV_SAMP(row_count) OVER (PARTITION BY weekday(day) ORDER BY day
ROWS BETWEEN 8 PRECEDING AND 1 PRECEDING) AS base_sd,
COUNT(*) OVER (PARTITION BY weekday(day) ORDER BY day
ROWS BETWEEN 8 PRECEDING AND 1 PRECEDING) AS base_n
FROM daily
),
z AS (
SELECT day, row_count, base_mean, base_n,
(row_count - base_mean) / greatest(base_sd, 0.05 * base_mean) AS z_score
FROM scored
)
SELECT *
FROM z
WHERE day = date_sub(current_date(), 1)
AND base_n >= 6
AND abs(z_score) > 3;
A few details that matter more than they look.
The stddev floor is doing real work. A same-weekday baseline has one seventh of the samples a pooled one does, and six or eight points produce a jumpy stddev estimate. A run of unusually consistent Tuesdays shrinks it, and an ordinary Tuesday then scores past 3 sigma. That's the one false positive in the experiment above. Flooring the stddev at 5% of the mean removed it without touching the real incident. Pick the floor from your own noise level; 3% to 10% covers most tables.
You need 6 to 8 weeks of history before this is trustworthy. Below that, base_n is too small. The base_n >= 6 guard keeps the query quiet during warm-up rather than guessing.
The query can't see a day with zero rows. GROUP BY emits nothing for an empty day, so a total outage has no row to score. Pair this with a freshness check, or join to a date spine.
Load time versus event time is a design decision. Counting by _loaded_at measures your pipeline, so a weekday-only job produces a giant Monday. Counting by the business event date (order_date, created_at) measures the business, so Monday looks like a normal Monday and the backlog disappears. Event time is usually the better choice for volume checks, but it has a cost: today's partition is incomplete until late data lands, so you score yesterday or the day before, never today.
How do you handle month-end, holidays, and backfills?
Generalize the weekday partition into a calendar key. Instead of partitioning by weekday, assign each day a label that says which kind of day it is, and baseline each day only against prior days with the same label.
Precedence matters. A holiday on a Wednesday is compared to other holidays, month-end to other month-ends, and everything else falls back to weekday.
You need a holiday table: one DATE column called holiday_date, loaded with your company's actual calendar rather than a generic national list. If your customers are mostly in Germany, US Thanksgiving is a normal Thursday for you.
Snowflake:
WITH daily AS (
SELECT CAST(_loaded_at AS DATE) AS day, COUNT(*) AS row_count
FROM analytics.public.orders
WHERE _loaded_at >= DATEADD(day, -400, CURRENT_DATE())
GROUP BY 1
),
keyed AS (
SELECT d.day, d.row_count,
CASE
WHEN h.holiday_date IS NOT NULL THEN 'holiday'
WHEN d.day = LAST_DAY(d.day) THEN 'month_end'
ELSE 'dow_' || DAYOFWEEKISO(d.day)
END AS calendar_key
FROM daily d
LEFT JOIN ops.holiday_calendar h ON h.holiday_date = d.day
),
scored AS (
SELECT day, row_count, calendar_key,
AVG(row_count) OVER (PARTITION BY calendar_key ORDER BY day
ROWS BETWEEN 6 PRECEDING AND 1 PRECEDING) AS base_mean,
STDDEV_SAMP(row_count) OVER (PARTITION BY calendar_key ORDER BY day
ROWS BETWEEN 6 PRECEDING AND 1 PRECEDING) AS base_sd,
COUNT(*) OVER (PARTITION BY calendar_key ORDER BY day
ROWS BETWEEN 6 PRECEDING AND 1 PRECEDING) AS base_n
FROM keyed
)
SELECT day, row_count, calendar_key, base_mean,
(row_count - base_mean) / GREATEST(base_sd, 0.05 * base_mean) AS z_score
FROM scored
WHERE base_n >= 4
AND ABS((row_count - base_mean) / GREATEST(base_sd, 0.05 * base_mean)) > 3
ORDER BY day;
Databricks SQL is the same query with three substitutions: date_sub(current_date(), 400) for the date filter, concat('dow_', CAST(weekday(d.day) AS STRING)) for the weekday label, and lowercase last_day and greatest, which exist under the same names.
I ran the logic of this query (in DuckDB, with dialect-equivalent functions) against ten months of synthetic data with a 2.5x month-end spike, six holidays at 15% of normal volume, and one injected weekday incident. The calendar-key version returned exactly one row: the incident. A pooled 28-day 3-sigma check on the same data returned six alerts, every one of them a month-end, and missed the incident.
Some honest limits of this approach:
- Month-end mixes weekdays and weekends. A month-end on a Saturday looks nothing like one on a Tuesday. If that matters for your data, key on "last business day of month" instead, which needs a business-day calendar.
- The holiday bucket mixes holidays. Christmas and Memorial Day probably don't behave the same. With only a handful of holidays a year, you rarely have enough history to split them, so the realistic choice is either to pool them or exclude them from scoring entirely.
- Excluding is often the right answer for holidays. If you have fewer than 4 prior examples of a day type, don't score it. Suppress the alert and, more importantly, keep the value out of the baseline for normal days.
That last point is the one people miss. Suppressing a holiday alert stops one notification. The holiday's 1,500-row value still sits in the trailing window for weeks, dragging the mean and inflating the stddev for every normal day after it.
Backfills are the same problem in a different costume. A 30-day backfill lands as one enormous load. The alert on that day is correct, arguably, but the value then contaminates the baseline for a month. Two fixes, both worth having: count by event time so a backfill spreads across the days it belongs to, and keep a way to mark specific days as excluded from the baseline. If your monitoring can't exclude a day, every incident you have becomes part of what "normal" means.
When should you use seasonal decomposition instead?
Less often than the literature suggests. In my experiment, STL decomposition caught the incident with a huge residual score (around negative 44) but also produced 7 false positives in 56 days at a robust z cutoff of 3.5. Raising the cutoff to 5 cut that to 4. The same-weekday baseline with a stddev floor got a cleaner result with ten lines of SQL.
That's not a knock on STL. It's a sign of what each tool is for.
| Approach | Handles | Struggles with | History needed | Where it runs |
|---|---|---|---|---|
| Same-weekday baseline | Weekly cycle | Trends, multiple overlapping cycles | 6 to 8 weeks | SQL in the warehouse |
| Calendar-key baseline | Weekly cycle, month-end, holidays | Trends, rare day types | 6 months or more for month-end | SQL in the warehouse |
| STL decomposition | Weekly cycle plus trend | Short series, needs a residual threshold tuned per table | 3+ full cycles, more is better | Python |
| Prophet-style models | Weekly and yearly cycles, trend, holiday regressors | Cost per table, opaque failures, cold start | 2+ weeks for weekly, a year for yearly | Python |
Decomposition earns its place when there's a trend layered on the seasonality. A table growing 3% a week drifts out of a same-weekday band built from 8 weeks of history, because the old weeks drag the mean down. STL separates trend from weekly shape, so growth doesn't look like an anomaly.
Prophet goes further and accepts holidays directly (add_country_holidays or a custom holiday dataframe), the cleanest way I know to model them if you have a few years of history. The cost is a model fit per table per check, and when it fails, it rarely tells you why.
My position: start with the calendar-key SQL. Reach for decomposition on the handful of tables that have a strong trend and enough history to fit it. Most tables don't need more than a weekday partition.
One caveat on my STL numbers: the script fits over the whole series, including days after the one being scored. A production check fits on trailing data only, where the trend estimate is noisier, so expect slightly worse results.
When should you just widen the threshold?
When the noise is real and has no calendar shape. Widening is a terrible fix for seasonality, because it buys quiet Mondays by going blind on every other day. Widen when:
- The residual has no pattern. After partitioning by weekday, false positives land on random days with no calendar or backfill explanation. That's genuine variance.
- Counts are small. A table that gets 40 rows a day has a natural spread of roughly plus or minus 6 rows (the square root of 40) from randomness alone, which is about 15%. Widen, or switch to a floor like "alert if fewer than 10 rows."
- The table is low-stakes. A staging table nobody queries directly doesn't need a tight band. Spend your sensitivity on the tables that feed dashboards and finance extracts.
- Only one direction matters. If extra rows are harmless, make the check one-sided instead of widening both sides, and keep full sensitivity on drops.
Don't widen when the alerts cluster on a weekday, a day of the month, or a known event. That's seasonality, and the fix is the baseline, not the threshold.
Quick test: group the last 60 days of alerts by weekday and by day of month. If one bucket holds more than a third of them, it's a calendar problem. Spread evenly, it's noise.
How do you diagnose a false positive before you tune anything?
Put every false positive into one of four buckets, in this order, and only apply the fix for the bucket it lands in. I call it the CCNR check: Calendar, Contamination, Noise, Real. Order matters: each bucket is cheaper to rule out than the next, and fixing them out of order makes things worse.
| Bucket | Question to ask | Evidence that it's this one | Fix | The wrong fix |
|---|---|---|---|---|
| 1. Calendar | Does it fire on the same weekday, day of month, or holiday? | Alerts cluster in one calendar bucket | Same-weekday or calendar-key baseline | Widening the threshold |
| 2. Contamination | Is a past incident, holiday, or backfill sitting in the baseline? | Expected value looks off; the band got wide after a specific event | Exclude those days from the baseline | Lengthening the window |
| 3. Noise | Is the spread genuine and patternless? | Small counts, alerts on random days after calendar fixes | Widen the threshold, add a floor, or go one-sided | Building a seasonal model |
| 4. Real | Was the data actually wrong? | Source system confirms the change | It isn't a false positive; fix the pipeline | Muting the rule |
For a single alert at 09:00 on a Monday:
- Pull the last 8 values for the same weekday, and check for month-end or a holiday. Normal for this kind of day? Calendar. Stop.
- Look at the baseline's expected value and band. Expected value far from a normal day, or a suspiciously wide band? Find the event polluting it. Contamination.
- Ask whether anything upstream changed: a deploy, a new filter, a source outage, a schema change. If yes, it's probably Real.
- None of the above, small deviation: Noise. Widen, floor, or go one-sided.
Step 3 is the one people skip when they're annoyed. A detector that fires every Monday trains you to dismiss Monday alerts, and the Monday the upstream filter actually broke looks exactly like every other Monday from inside Slack. That's the same fatigue mechanism behind alert storms: every alert you learn to ignore makes the next real one less likely to get read.
The Real bucket is also why I'd push back on muting a seasonal false positive as a fix. Muting removes the Monday alert and the Monday incident together.
How does AnomalyArmor handle seasonality, and where does it fall short?
I'd rather be specific than vague here, because this is where our own product's limits matter most. These details come from the code as it stands.
Custom metric checks use a seasonal model. With ML-based detection and at least 14 data points, a metric check fits a Prophet model (via the Merlion library) with weekly seasonality always on. Below 14 points it falls back to a plain mean plus or minus N standard deviations, so the first two weeks of a daily metric are seasonality-blind.
Yearly seasonality is effectively off by default. It needs 365 data points, and the metric lookback defaults to 30 days (maximum 365). Unless you raise the lookback to a full year, annual cycles aren't modelled. There's no holiday calendar anywhere in the detection path.
Row count checks don't use the weekly pattern they detect. In auto-learn mode, row count monitoring learns from up to 30 days of history and flags weekly, monthly, and hourly seasonality by comparing group averages. Those flags are stored, but the band is a pooled average plus or minus sensitivity times the stddev. Out of the box, row count checks behave like the pooled baseline in my experiment, with the same false-negative risk on strongly weekly tables.
Operating-period mode is the partial fix, and it's opt-in. Metric, row count, and validity monitors have a setting with three values: off (the default), schedule (a business-hours schedule you define), and auto. In auto mode, a daily monitor buckets history by day of week, a sub-daily one by hour of week, and any bucket whose median is below 10% of the busiest bucket's is dormant. Active values are baselined only against active history; dormant values alert only above the highest dormant value seen plus a 10% to 40% margin.
That fixes weekend contamination: Saturday's near-zero stops dragging down Wednesday's baseline. It doesn't fix the Monday catch-up, because the split is binary and Monday and Wednesday share one "active" baseline. For custom metrics the Prophet weekly term covers that; for row counts, nothing does.
You can exclude a value from a metric's baseline. Metric snapshots can be marked excluded, with a reason, and are dropped before the model is fit. That's the contamination fix, by hand. Row count history has no equivalent; readings stay in the 30-day window whatever their status, including ones flagged as anomalies.
Blackout windows suppress alerts, not baseline values. Company-wide blackouts are one-time or yearly. Yearly uses a fixed month and day, so floating holidays like US Thanksgiving need a new window each year, and the holiday's value still enters the history.
So the honest summary: custom metrics handle weekly seasonality reasonably well; row count checks need operating-period mode switched on and still won't separate Monday from Wednesday; nothing handles month-end or holidays automatically today. If your monitoring needs those, the calendar-key SQL above is a better answer than what we ship. If you want a broader view of where warehouse-native checks and observability tooling each stop, the dbt tests vs data observability post covers that boundary.
Frequently asked questions
Why does my anomaly detection alert every Monday?
Usually because the detector compares Monday to Sunday or to a baseline that doesn't separate weekdays. Monday often carries a weekend backlog, so it looks like a spike against anything but other Mondays. Switch to a same-weekday baseline and the alert goes away for the right reason.
What causes most false positives in data anomaly detection?
Seasonality the baseline doesn't model: weekends, month-end, holidays, and backfills. The second biggest cause is contamination, where a past incident or backfill sits in the baseline and distorts the expected range. Genuine random noise is a distant third on most warehouse tables.
How do I build a day-of-week baseline in SQL?
Partition your window function by weekday: PARTITION BY DAYOFWEEKISO(day) in Snowflake or PARTITION BY weekday(day) in Databricks, with ROWS BETWEEN 8 PRECEDING AND 1 PRECEDING. Compute the mean and stddev over that window and score today against them.
Why not use a longer rolling window?
Because a longer window mixes weekdays and weekends into one distribution, which inflates the standard deviation. In the experiment in this post, a 28-day pooled baseline had a 3-sigma band wide enough that a Wednesday with zero rows would have passed, and it missed a 55% drop entirely.
How much history does a seasonal baseline need?
Six to eight weeks for a same-weekday baseline, since each weekday only contributes one point per week. Month-end needs at least four to six months. Yearly patterns and holidays need a full year, ideally two.
How should I handle holidays in data monitoring?
Keep a holiday calendar table that reflects your business, not a generic national list. Either baseline holidays against prior holidays or, if you have fewer than four examples, skip scoring them and keep their values out of the normal-day baseline.
How do I stop backfills from causing anomaly alerts?
Count rows by event time rather than load time so a backfill spreads across the days it belongs to. Then exclude the backfill day from the baseline, or it will distort the expected range for the length of your window.
When is STL decomposition better than a day-of-week baseline?
When the series has a trend on top of the weekly cycle, such as a table growing several percent a week. STL separates trend from seasonality so growth doesn't register as an anomaly. On flat weekly data, a same-weekday baseline is simpler and performed better in my test.
When should I widen an anomaly threshold?
When false positives land on random days with no calendar explanation, when counts are small enough that random variation is large, or when the table is low-stakes. Don't widen to fix alerts that cluster on a weekday or a day of the month.
Does suppressing alerts on holidays fix the baseline?
No. A blackout or mute stops the notification, but the holiday's value still sits in the rolling window and drags the baseline for every normal day after it. You need to exclude the value from the baseline as well.