設定 Power BI 儀表板的資料警示Set up data alerts for the Power BI dashboard

注意:這篇文章是搭配 SharePoint Online 使用 PowerApps、Microsoft Flow 及 Power BI 之教學課程系列的一部分。Note: This article is part of a tutorial series on using PowerApps, Microsoft Flow, and Power BI with SharePoint Online. 請確定您閱讀系列簡介以了解大致概念,以及相關下載項目。Make sure you read the series introduction to get a sense of the big picture, as well as related downloads.

在這項工作中,我們會在 Power BI 中新增警示,讓我們知道擱置專案是否花太長時間進行核准,以及當該警示發生時回應的流程。In this task we'll add an alert in Power BI to let us know if pending projects are taking too long to approve, and a flow that responds when that alert occurs. 如需警示的詳細資訊,請參閱 Power BI 服務中的資料警示For more information on alerts, see Data alerts in Power BI service.

步驟 1:建立警示Step 1: Create an alert

  1. 在 Power BI 服務中,開啟您在前一項工作中建立的儀表板。In the Power BI service, open the dashboard you created in the last task.
  2. 與具有單一數字的卡片上,按一下或點選省略符號 (...)。On the card with the single number, click or tap the ellipsis (. . .).

    待核准卡片的最大天數

  3. 按一下或點選Click or tap 鈴鐺圖示..

    圖格功能表

  4. 在右窗格中,按一下或點選 [新增警示規則]。In the right pane, click or tap Add alert rule.

    新增警示規則

  5. 尋找可用於警示的選項,例如警示應執行的頻率。Look at the options that are available for alerts, such as how frequently an alert should run. 為 [臨界值] 輸入值 25,然後按一下或點選 [儲存並關閉]。Enter a value of 25 for Threshold, then click or tap Save and close.

    設定警示臨界值並儲存

即使 56 高於臨界值 25,也不會立即引發警示。The alert won't fire right now even though 56 is above the threshold of 25. 會在資料更新之後引發,我們會在我們透過案例端對端執行時看到。It will fire when data is updated, which we'll see when we run through the scenario end-to-end.

當警示引發時,Power BI 會將電子郵件傳送給警示的建立者,我們會在下一個步驟中看到如何使用 Microsoft Flow 傳送其他郵件。When the alerts fires, Power BI sends email to the creator of the alert, and we'll see how to send additional mail using Microsoft Flow, in the next step.

步驟 2:建立回應警示的流程Step 2: Create a flow that responds to the alert

  1. 登入 flow.microsoft.com、按一下或點選 [服務],然後按一下或點選 [Power BI]。Sign into flow.microsoft.com, click or tap Services, then Power BI.

    Microsoft Flow 中的 Power BI

  2. 按一下或點選 [觸發 Power BI 資料警示時,將電子郵件傳送至任何受眾]。Click or tap Send an e-mail to any audience when a Power BI data alert is triggered.

    觸發 Power BI 資料警示時傳送電子郵件

  3. 按一下或點選 [使用此範本]。Click or tap Use this template.
  4. 如果您尚未登入,請登入 Outlook 和 Power BI,然後按一下或點選 [繼續]。If you're not already signed in, sign into Outlook and Power BI, then click or tap Continue.

    登入並繼續

  5. 在 [警示識別碼] 下拉式清單中,選取 [待核准的最大天數警示]。In the Alert Id drop-down list, select Alert for Max days pending approval.

    指定與警示作為觸發程序

  6. 在 [收件者] 方塊中,輸入有效的電子郵件地址。In the To box, enter a valid email address.

    指定要將電子郵件傳送給誰

  7. 按一下或點選 [編輯] 以查看您可以更新的其他欄位。Click or tap Edit to see other fields that you can update.

    編輯警示電子郵件

  8. 在畫面右上角,按一下 [建立流程],然後按一下 [完成]。At the top right of the screen, click Create flow, then Done.

    完成按鈕

當我們透過案例端對端執行時,會看到這個流程執行。We will see this flow run when we run through the scenario end-to-end. 現在我們將移至此案例中的最後一個工作 - 將 Power BI 報告內嵌至 SharePoint。Now we'll move on to the last task in this scenario - embedding a Power BI report into SharePoint.

後續步驟Next steps

此教學課程系列的下一個步驟是在 SharePoint Online 中內嵌 Power BI 專案報告The next step in this tutorial series is to embed the Power BI project report in SharePoint Online.