Power BI 服务中的数据警报Data alerts in Power BI service

设置警报,以便在仪表板中的数据更改超出你设置的限制时通知你。Set alerts to notify you when data in your dashboards changes beyond limits you set.

只能为报表视觉对象固定到的磁贴设置警报,而且只能为仪表、KPI 和卡片设置警报。Alerts can only be set on tiles pinned from report visuals, and only on gauges, KPIs and cards. 可以为从报表固定到仪表板的流数据集中创建的视觉对象设置警报,但无法直接在仪表板上使用“添加磁贴” > “自定义流数据”为创建的流磁贴设置警报。Alerts can be set on visuals created from streaming datasets that have been pinned from a report to a dashboard, but cannot be set on streaming tiles created directly on the dashboard using Add tile > Custom streaming data.

即使共享你的仪表板,也只有你可以看到自己设置的警报。Only you can see the alerts you set, even if you share your dashboard. 数据警报跨平台完全同步;可以在 Power BI 移动应用和 Power BI 服务中设置和查看数据警报。Data alerts are fully synchronized across platforms; set and view data alerts in the Power BI mobile apps and in the Power BI service. 它们对 Power BI Desktop 不可用。They are not available for Power BI Desktop. 警报甚至可以是与 Microsoft Flow 集成的自动警报 - 试试吧Alerts can even be automated and integrated with Microsoft Flow - try it out yourself.

警告

数据驱动的警报通知提供有关数据的信息。Data-driven alert notifications provide information about your data. 如果你在移动设备上查看 Power BI 数据,而该设备之后被盗,我们建议使用 Power BI 服务来关闭所有数据驱动的警报规则。If you view your Power BI data on a mobile device and that device gets stolen, we recommend using the Power BI service to turn off all data-driven alert rules.

在 Power BI 服务中设置数据警报Set data alerts in Power BI service

观看 Amanda 将一些警报添加到她的仪表板上的磁贴。Watch Amanda add some alerts to tiles on her dashboard. 然后按照视频下面的分步说明来自己尝试一下。Then follow the step-by-step instructions below the video to try it out yourself.

此示例使用零售分析示例仪表板中的卡片磁贴。This example uses a card tile from the Retail Analysis sample dashboard.

  1. 启动仪表板。Start on a dashboard. 在仪表板仪表、KPI 或卡磁贴中,选择省略号。From a dashboard gauge, KPI, or card tile, select the ellipses.

  2. 选择钟形图标 为“总存储”添加一个或多个警报。Select the bell icon to add one or more alerts for Total stores.

  3. 若要开始,请选择“+ 添加警报规则”,并确保滑块已设置为“开启”,并为警报提供一个标题。To start, select + Add alert rule, ensure the slider is set to On, and give your alert a title. 标题有助于轻松识别警报。Titles help you easily recognize your alerts.

  4. 向下滚动,输入警报的详细信息。Scroll down and enter the alert details. 在此示例中,我们将创建一个在总存储数超过 100 时每天提醒一次的警报。In this example we'll create an alert that notifies us once a day if the number of total stores goes above 100. 警报将出现在我们的通知中心。Alerts will appear in our Notification center. 并且,我们还将收到 Power BI 发送的电子邮件。And we'll have Power BI send us an email as well.

  5. 选择保存Select Save.

接收警报Receiving alerts

当被跟踪的数据到达一个你所设定的阈值时,将发生下列情况。When the data being tracked reaches one of the thresholds you've set, several things will happen. 首先,Power BI 会检查自最后一个警报发出是否已超过 1 个小时或 24 个小时(具体取决于所选择的选项)。First, Power BI checks to see if it's been more than an hour or more than 24 hours (depending on the option you selected) since the last alert was sent. 只要数据超过阈值,你就会收到警报。As long as the data is past the threshold, you'll get an alert.

接下来,Power BI 将向通知中心发出警报(可选择以电子邮件形式发送)。Next, Power BI sends an alert to your notification center and, optionally, in email. 每个警报都包含数据的直接链接。Each alert contains a direct link to your data. 选择链接以查看可在其中浏览、共享和了解详细信息的相关磁贴。Select the link to see the relevant tile where you can explore, share, and learn more.

  1. 如果你已设置警报向你发送电子邮件,则你将在收件箱中找到如下内容。If you've set the alert to send you an email, you'll find something like this in your Inbox.

  2. Power BI 会将消息添加到你的“通知中心”,并会向适用的磁贴添加新的警报图标。Power BI adds a message to your Notification center and adds a new alert icon to the applicable tile.

  3. 打开你的通知中心以查看警报详细信息。Open your Notification center to see the alert details.

    备注

    警报仅适用于刷新的数据。Alerts only work on data that is refreshed. 数据刷新时,Power BI 会查看是否为该数据设置了警报。When data refreshes, Power BI looks to see if an alert is set for that data. 如果数据已达到了警报的阈值,则会触发警报。If the data has reached an alert threshold, an alert is triggered.

管理警报Managing alerts

可通过多种方法管理警报:从仪表板磁贴本身、从 Power BI 设置菜单,以及在 iPhone 上的 Power BI 移动应用适用于 Windows 10 的 Power BI 移动应用中各个磁贴。There are many ways to manage your alerts: From the dashboard tile itself, from the Power BI Settings menu, on an individual tile in the Power BI mobile app on the iPhone or in the Power BI mobile app for Windows 10.

从磁贴本身From the tile itself

  1. 如果需要更改或删除磁贴的警报,请通过选择钟形图标 重新打开“管理警报”窗口。If you need to change or remove an alert for a tile, re-open the Manage alerts window by selecting the bell icon . 将显示已为该磁贴设置的所有警报。All the alerts that you've set for that tile are displayed.

    ..

  2. 若要修改警报,请选择警报名称左侧的箭头。To modify an alert, select the arrow to the left of the alert name.

    ..

  3. 若要删除警报,请选择警报名称右侧的垃圾桶。To delete an alert, select the trashcan to the right of the alert name.

从 Power BI 设置菜单From the Power BI settings menu

  1. 从 Power BI 菜单栏选择齿轮图标。Select the gear icon from the Power BI menubar.

    ..

  2. 在“设置”下,选择“警报”。Under Settings select Alerts.

  3. 你可以从此处打开和关闭警报,打开“管理警报”窗口,以进行更改或删除警报。From here you can turn alerts on and off, open the Manage alerts window to make changes, or delete the alert.

提示和故障排除Tips and troubleshooting

  • 警报当前不受 Bing 磁贴或带有日期/时间度量值的卡片磁贴支持。Alerts are currently not supported for Bing tiles, or card tiles with date/time measures.
  • 警报仅适用于数字数据类型。Alerts only work with numeric data types.
  • 警报仅适用于刷新的数据。Alerts only work on data that is refreshed. 它们不适用于静态数据。They do not work on static data.
  • 如果生成 KPI/卡片/仪表报表视觉对象,然后将该视觉对象固定到仪表板,那么警报将仅适用于流数据集。Alerts will only work on streaming datasets if you build a KPI/card/gauge report visual and then pin that visual to the dashboard.

后续步骤Next steps

创建集成了数据警报的 Microsoft Flow Create a Microsoft Flow that includes a data alert
在移动设备上设置数据警报 Set data alerts on your mobile device
Power BI 入门 Get started with Power BI
更多问题?More questions? 尝试咨询 Power BI 社区Try asking the Power BI Community