Alerts and scheduled reports
Alerts watch your data for you and speak up when a number crosses a line. Reports deliver data or a dashboard on a schedule, whether or not anything changed.
Alerts and reports
- Alert
- Checks a condition on a schedule and notifies people only when it holds: refunds above 5%, no orders today.
- Report
- Sends data every time it runs: a weekly CSV of sales, a PDF of a dashboard every Monday morning.
Before you start
| Channel | Set up | Sends |
|---|---|---|
| Works when your DataViz server can send mail. To send from your own mail server, set it up under Settings → Integrations & Services → Email (SMTP). | A message, with a CSV or PDF attached | |
| Slack | Connect your Slack workspace under Settings → Integrations & Services. | A message to a channel or person |
| Connect WhatsApp Business under Settings → Integrations & Services. | A message to a phone number |
A channel that isn't set up says so when you pick it. See Integrations.
Create an alert
Start the alert
Open Alerts & Reports and choose New Alert.
Name it and choose what to watch
Give it a name that says what's wrong when it fires, such as Region revenue below $250k. Choose the Channel, then a Dataset or a Chart to read from. To alert on totals, choose a chart: it adds up in the database (see Writing conditions).
Say when it fires
Under Fires when, build the condition from the source's columns with Add a comparison, or choose Type it instead and write it (see below).
Choose when to check
Pick how often it repeats, the timezone and the time. The next three runs are listed so you can confirm it.
Add recipients and create
Add Recipients. Choose Check against the data to see whether the condition holds right now, and Send Test Notification to make sure delivery works. Then choose Create.
Writing conditions
A condition compares a column, or a total of a column, with a value. DataViz checks it when you save, and tells you where and why if it can't understand it.
| Condition | Fires when |
|---|---|
revenue > 1000 | Some row has revenue above 1,000 |
sum(revenue) < 50000 | The total revenue is below 50,000 (with a chart as the source) |
row_count = 0 | The source returned no rows at all |
avg(discount) > 0.1 and region = 'Europe' | The average discount is above 10% and some row is in Europe |
status in ('failed', 'error') | Some row has one of these statuses |
discount is null or discount > 0.5 | Some row has a missing or a large discount |
amount between 10 and 20 | Some row's amount is 10 to 20, inclusive |
name like 'Acme%' | Some row's name starts with Acme (% is any text, _ one character) |
The rules
- Totals:
sum,avg,min,max,count,count_distinct,first,lastandrow_countgive one answer for the whole result. - A comparison on a plain column is checked row by row; the alert fires if some row satisfies the whole condition.
- Combine comparisons with
and,or,notand parentheses. Names aren't case-sensitive. - A missing value never matches a comparison; use
is nullto ask about one.
Schedules
Choose a repeat: every few minutes, hourly, daily, on weekdays, weekly or monthly, in the timezone you pick. For anything else, write a cron expression or a phrase:
every monday at 8:30
0 9 1 * * (09:00 on the first day of each month)Scheduled reports
Choose New Report instead of New Alert. A report has no condition: it sends every time it runs. Pick a Format:
- CSV
- The rows of the dataset or chart. A very large result is cut to the attachment size limit, and the message says so.
- A dashboard's PDF, every tab with its cover page, showing the data the report's creator sees. Choose which dashboard to print.
Attachments go by email; Slack and WhatsApp messages carry a summary without a file.
Recipients
| Channel | Recipient format | Up to |
|---|---|---|
| Email addresses, comma-separated | 50 | |
| Slack | A channel (#sales or C0123456) or a person (U0123456 or @name) | 20 |
| Phone numbers in international format, such as +14155550134 | 20 |
Pause, test and review deliveries
Alerts & Reports lists everything with its schedule, next run and last trigger. Pause and resume an alert, duplicate it, edit or delete it, and open its delivery log to see each time it ran and whether the message was delivered.
Reports an AI client or Insight AI scheduled for other people appear here once you've approved them; see Approvals.