Skip to content
Business Intelligence

Flag the Weeks, Invoices and Lanes That Look Wrong, and Say Why

Fixed-threshold alerts fire all through peak season and sleep through the quiet weeks, so nobody reads them. Here's how to get a short, sorted list of the weeks, invoices and lanes that really look wrong, each with a reason.

Dave Ingram
Dave Ingram
November 26, 2026
5 min read
Flag the Weeks, Invoices and Lanes That Look Wrong, and Say Why

Somebody always notices eventually. The vendor invoice at ten times its usual size gets caught at audit. The lane where late deliveries tripled comes up in the quarterly carrier review, two months after the customers noticed. The community whose overtime doubled shows up in the owner package, after the money's spent.

The problem isn't that nobody's watching. Most teams have alerts. They're set on fixed thresholds, so they go off all through peak season, when everything's high, and stay quiet in January, when a real problem is small in absolute terms. After a month of that, the alerts get filtered to a folder.

What anomaly detection does, in plain terms

The idea is to judge each number against what it should have been, not against one line for everything. A Monday in December is compared with what Decembers and Mondays usually look like for that store. An invoice is compared with what invoices of that size, from that vendor, usually cost. Then you decide how many flags you can handle, and the detector is tuned to that.

That last part matters more than it sounds. Every detector flags some normal things by accident. The useful question is how often, and whether it's the rate you asked for. The Scientist calls it the false-flag rate, you choose it (1% of normal rows by default), and the paper tells you whether it hit it.

In Querri you ask the Scientist:

Which lanes had late-delivery spikes this quarter?

What comes back is a short paper and only the flagged rows, most unusual first, each with what was expected and a one-line reason: "unusual: 9,800 against an expected 1,200".

A web store's daily orders from July to early September with promotion days marked in orange, and two days marked apart from them: a dip to 47 orders on 27 July and a spike to 269 on 22 August

The promotion days spike too, but each of them has a promotion behind it. The two days marked apart have nothing to explain them, and those are the ones worth a phone call.

The questions people ask

Finance: "Flag the journal entries or invoices that look wrong."

Logistics: "Which lanes had late-delivery spikes this quarter?"

Ecommerce: "Which days had unusual return rates by store?"

Senior living: "Which communities had unusual overtime or incident weeks?"

Marketing: "Flag spend spikes by campaign."

Operations: "Is this line out of control?"

It also catches slow problems, the kind where no single week is alarming but several weeks in a row sit on the same side of normal.

What to do with the answer

Work the list. The flagged rows are already sorted, and each one says why it's there. That's a work list, not a folder nobody opens.

The four unexplained days, actual against expected: 22 August web store orders 269 against 162 (+66%), 27 July web store orders 47 against 153 (-69%), and wholesale revenue on 6 August (0 against 12,456) and 5 August (-683 against 12,501)

A wholesale day with zero revenue, right after a negative one, is the kind of thing you want to know about the week it happens, whatever the cause turns out to be.

Set the rate to fit the team. If 1% is more than anyone can look at, ask for fewer. If you'd rather catch more and check more, ask for a higher rate.

Run it every month. Attach the latest month's invoices or weeks to the investigation's project and ask for flags. The saved model judges each series against its own recent weeks, so you don't start over.

Ask why one stands out. "What else was different about that lane in those weeks?" carries on in the same notebook.

If you have a column of confirmed problems, such as invoices that turned out to be errors, the paper also says what share of its flags were real problems and what share of the real problems it caught. Without one, any real problems already in your history count against its false-flag rate, so it can look a little worse than it is.

And for "why did late deliveries rise this quarter" as a whole, ask why a number changed or what drives a number. This one finds the exceptions.

What data it needs

For a series, a dated value per item, daily or weekly, with some history before the periods you want judged (seasons need a few full cycles). For rows, at least 30. The Scientist builds those tables from your raw data and says what it did.

The full detail is in the docs under Unusual activity. For the other question types, see Meet the Scientist.

Which invoices look wrong this month? Querri it.

Tags

#Scientist #Anomaly Detection #Exception Reporting #Logistics #Finance
Dave Ingram
Dave Ingram
Dave Ingram is Founder and CEO of Querri, focused on building practical, AI-powered data solutions that help teams turn complex problems into clear, actionable insights.
November 26, 2026
5 min read

Share this article

Ready to unlock your data's potential?

Turn raw data into decisions in minutes