← All use cases

Revenue drop vs. last week

Daily revenue more than 30% below the same weekday last week.

Category
Finance
Team
Finance
Priority
high
Runs
Every day

Why watch it

A broken checkout rarely throws an error. It just sells less. Comparing with the same weekday catches it without false alarms on weekends.

The query

Every row it returns is a case to handle. Run it every so often and Pulso opens a signal only for rows it has not seen before.

SQLEvery day
SELECT current_date AS day, sum(total_eur) AS revenue
FROM orders
WHERE created_at::date = current_date
HAVING sum(total_eur) < 0.7 * (SELECT sum(total_eur) FROM orders WHERE created_at::date = current_date - 7)
Unique by day

The signal

Its title uses the row’s columns, so the inbox reads like a to-do list:

Revenue dropped on {{ day }}

highFinance

Set up “Revenue drop vs. last week” in minutes

Connect your database, paste the query, adjust the table names and pick who handles the signals. Free during early access.