Skip to main content

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

ChannelSet upSends
EmailWorks 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
SlackConnect your Slack workspace under Settings → Integrations & Services.A message to a channel or person
WhatsAppConnect 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

  1. Start the alert

    Open Alerts & Reports and choose New Alert.

  2. 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).

  3. 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).

  4. 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.

  5. 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.

Check against the data reads the chart now: here one region is under $250k, so the alert would fire.

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.

ConditionFires when
revenue > 1000Some row has revenue above 1,000
sum(revenue) < 50000The total revenue is below 50,000 (with a chart as the source)
row_count = 0The 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.5Some row has a missing or a large discount
amount between 10 and 20Some 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, last and row_count give 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, not and parentheses. Names aren't case-sensitive.
  • A missing value never matches a comparison; use is null to 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:

Schedule
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.
PDF
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

ChannelRecipient formatUp to
EmailEmail addresses, comma-separated50
SlackA channel (#sales or C0123456) or a person (U0123456 or @name)20
WhatsAppPhone numbers in international format, such as +1415555013420

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.