Working with Threshold Alerts in Amazon QuickSight - Amazon QuickSight

Working with Threshold Alerts in Amazon QuickSight

 Applies to: Enterprise Edition 

To stay informed about important changes in your data, you can create threshold alerts using KPI and Gauge visuals in an Amazon QuickSight dashboard. With these alerts, you can set thresholds for your data and be notified by email when your data crosses them. You can also view and manage your alerts at anytime in a QuickSight supported web browser.

For example, let's say that you're a customer success manager for a large organization and you want to know when the number of tickets in a support queue exceeds a certain number. Let's say too that you have a dashboard with a KPI or Gauge visual that tracks the number of tickets in this queue. In this case, you can create an alert and be notified by email when the number exceeds the threshold you specified. That way, you can take action as soon as you're notified.

You can create multiple alerts for a single visual. If the visual is updated or deleted by the author after you create an alert, your alert settings don't change. When you create an alert, the alert takes on any filters applied to the visual at that time. If you or the author changes the filter, your existing alert doesn't change. However, if you create a new alert, your new alert takes on the new filter settings.

For example, let's say you have a dashboard with a filter control that you can use to switch the data for each visual in the dashboard from one US city to another. You have a KPI visual on the dashboard that shows average flight delays, and you're interested in delays for flights leaving from Seattle, Washington, in the US. You change the filter control to Seattle and set an alert on the visual. This alert tracks flight delays from Seattle. Tomorrow, let's say that you want to also track flight delays from Portland, Oregon, so you change the filter control to Portland and create another alert. This new alert tracks flight delays from Portland. You now have two alerts, one on Seattle and one on Portland, working independently.

Note

You can’t create alerts for visuals in an embedded dashboard or from the QuickSight mobile app. Also, KPI visuals that don’t use a date-time field as a trend don't support alerts. An example is a KPI that shows the difference in flights between carriers X and Y instead of a KPI that shows the difference in flights between dates A and B.

Creating Alerts

Use the following procedure to create threshold alerts for KPI or Gauge visuals in a dashboard.

To create an alert

  1. Open QuickSight and navigate to the dashboard that you want.

    For more information about viewing dashboards as a dashboard subscriber in QuickSight, see Exploring Dashboards.

  2. In the dashboard, select the KPI or Gauge visual that you want to create an alert for.

  3. On the menu at upper-right on the visual, choose the Create alert icon.

    
					        Image of the alert icon in the upper-right of the visual.
  4. On the Create alert page that opens, do the following:

    1. For Alert name, enter a name for the alert.

      By default, the visual name is used for the alert name. You can change it if you want.

    2. For Alert value, choose a value that you want to set the threshold for.

      The values that are available for this option are based on the values the dashboard author sets in the visual. For example, let's say you have a KPI visual that shows a percent difference between two dates. Given that, you see two alert value options: percent difference and actual.

      If there is only one value in the visual, you can't change this option. It is the current value and it is displayed here so that you can use it as a reference while you choose a threshold. For example, if you're setting an alert on average cost, this value will show you what the current average cost is (say, $5). With this reference value you can make more informed decisions while setting your threshold.

    3. For Condition, choose a condition for the threshold.

      You can choose the following conditions.

      • Is above – Sets a rule that the alert triggers if the alert value goes above the threshold you set.

      • Is below – Sets a rule that the alert triggers if the alert value goes below the threshold that you set.

      • Is equal to – Sets a rule that the alert triggers if the alert value is equal to the threshold you set.

    4. For Threshold, enter a value to prompt the alert.

    5. For Notification preference, choose how often you want to be notified about a breach to the threshold you set.

      You can choose from the following options.

      • As frequently as possible - This option alerts you whenever the threshold is breached. If you choose this option, you might get alerts multiple times a day.

      • Daily at most - This option alerts you once per day when the threshold is breached.

      • Weekly at most - This option alerts you once per week when the threshold is breached.

    6. (Optional) Choose Notify me when data is not available - When you select this option, you're notified when there's no data to check your alert rule against.

    7. Choose Save.

      A message at upper-right appears indicating that the alert has been saved. If your data crosses the threshold you set, you get a notification by email at the address that's associated with your QuickSight account.

Managing Threshold Alerts

You can edit your existing alerts, turn them on or off, or view the history of times when the alert was triggered. Use the following procedures to do so.

To edit an existing alert

  1. Open QuickSight, choose Dashboards, and then navigate to the dashboard that you want to edit an alert for.

  2. On the Dashboards page, choose Alerts at upper-right.

    
					        Image of a dashboard with the Alerts option highlighted in red at upper-right.
  3. On the Manage alerts page that opens, find the alert that you want to edit, and then choose Edit beneath the alert name.

    You can edit the alert name, condition, and threshold.

  4. Choose Save.

To view the history of when an alert was triggered

  1. Open QuickSight, choose Dashboards, and then navigate to the dashboard that you want to view alert history for.

  2. On the Dashboards page, choose Alerts at upper-right.

  3. On the Manage alerts page that opens, find the alert that you want to view the history for, and then choose History beneath the alert name.

To turn on or turn off an existing alert

  1. Open QuickSight, choose Dashboards, and navigate to the dashboard that you want to turn on or turn off an alert for.

  2. On the Dashboards page, choose Alerts at upper-right.

  3. On the Manage alerts page that opens, find the alert that you want to turn on or off, and then select or clear the toggle by the alert name.

    The alert is turned on when the toggle is blue, and turned off when the toggle is gray.

Investigating Alert Failures

When an alert fails, QuickSight sends you an email notification about the failure. Alerts can fail for many reasons, including the following:

  • The dataset the alert is using was deleted.

  • The owner of the alert lost permissions to the dataset or to certain rows or columns in the dataset.

  • The owner of the alert lost access to the dashboard.

  • There is no data for the data tracked by the alert.

When a failure occurs, QuickSight sends you a notification and disables the alert if the reason for the failure isn't likely to be fixed. For example, if the alert fails due to the loss of access to a dashboard, or if the dashboard was deleted. Otherwise, QuickSight attempts to check your data for threshold breaches again. After four failures, QuickSight turns off the alert and notifies you that the alert is turned off. If the alert can be checked again, QuickSight sends you a notification.

To investigate why an alert failed, check that you still have access to the dashboard. Also check that you have permissions to the correct dataset and to the correct rows and columns in the dataset. If you have lost access or permissions, contact the dashboard owner. If you have the necessary access and permissions, you might need to edit your alert to avoid future alert failures.

Alert Scheduling

When you create an alert, QuickSight checks your data for any breaches against the thresholds you set based on when your dataset is scheduled to refresh. For SPICE datasets, alert rules are checked after a successful refresh of your SPICE dataset. For direct query datasets, alert rules are checked at a random time between 6:00 PM and 8:00 AM in the AWS Region that holds the dataset by default.

Alert Permissions

If you're an administrator, you can control who in your organization can set threshold alerts in QuickSight by creating a custom permissions policy. To set custom permissions in QuickSight, choose your user name at the upper-right corner of any QuickSight page, choose Manage QuickSight, and then choose Manage permissions.