將 Power BI 專案報告內嵌在 SharePoint OnlineEmbed the Power BI project report in SharePoint Online

注意:這篇文章是搭配 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 報告內嵌在主控兩個清單的相同 SharePoint Online 網站中。The last task in this scenario is to embed our Power BI report in the same SharePoint Online site that hosts our two lists. Power BI 支援各種不同的內嵌方法,最近將整合直接新增至 SharePoint 頁面以供 Web 和行動檢視。Power BI supports a variety of approaches to embedding, and has recently added integration directly into SharePoint pages for web and mobile views.

使用這個類型的內嵌,Power BI 會內嵌報告作為網頁組件、為使用者提供適當的存取權,並且讓您點選從內嵌的報告到 powerbi.com 上的報告。首先,我們會在 Power BI 中產生內嵌連結,然後在我們建立的頁面中使用該連結。With this type of embedding, Power BI embeds the report as a web part, provides appropriate access for users, and lets you click through from the embedded report to the report at powerbi.com. First, we'll generate an embed link in Power BI, then use that link in a page that we create. 如需有關內嵌的詳細資訊,請參閱在 SharePoint Online 中內嵌報告網頁組件 (尤其是「需求」一節)。For more information on embedding, see Embed with report web part in SharePoint Online (especially the Requirements section).

  1. 登入 Power BI,然後在左側瀏覽窗格中,按一下或點選報告名稱。Sign in to Power BI, then in the left navigation pane, click or tap the report name.

    瀏覽至報告

  2. 按一下或點選 [內嵌於 SharePoint Online]。Click or tap Embed in SharePoint Online.

    內嵌於 SharePoint Online

  3. 從對話方塊將內嵌連結複製到檔案,然後按一下 [關閉]。Copy the embed link from the dialog box to a file, then click Close. 我們會在建立 SharePoint 頁面之後使用連結。We will use the link after we create a SharePoint page.

    SharePoint 的內嵌連結

步驟 2:內嵌報告Step 2: Embed the report

  1. 登入 SharePoint,然後按一下或點選 [網站內容]。Sign in to SharePoint, then click or tap Site contents.

    SharePoint 網站內容

  2. 您可以只包含小組首頁上的報告,但是我們也會向您示範如何為它建立個別頁面。You could just include a report on the team home page, but we'll show you how to create a separate page for it also. 按一下或點選 [新增],然後按一下或點選 [頁面]。Click or tap New, then Page.

    新增 SharePoint 頁面

  3. 輸入頁面的名稱,例如「專案分析」。Enter a name for the page, like "Project Analysis".
  4. 按一下或點選 [加號圖示],按一下或點選 [Power BI]。Click or tap Plus icon then Power BI.

    新增 Power BI 頁面組件

  5. 按一下或點選 [新增報告]。Click or tap Add report.

    新增報告

  6. 在右窗格中,將內嵌 URL 複製到 [Power BI 報告連結] 方塊。In the right pane, copy the embed URL into the Power BI report link box. 將 [顯示篩選窗格] 和 [顯示瀏覽窗格] 都設為 [開啟]。Set both Show Filter Pane and Show Navigation Pane to On.

    報告設定

  7. 現在報告會內嵌在頁面中。The report is now embedded in the page. 按一下 [發佈] 讓它可供能夠存取基礎報告的任何人使用。Click Publish to make it available to anyone who can access the underlying report.

    報告內嵌完成

步驟 3:授與報告存取權Step 3: Grant access to the report.

如果您如我們所建議的正在使用 Office 365 群組,請確定需要存取權的使用者是 Power BI 服務中群組工作區的成員。If you are using Office 365 Groups as we recommend, make sure users who need access are members of the group workspace within the Power BI service. 這可確保使用者可以檢視該群組的內容。This ensures that users can view the contents of that group. 如需詳細資訊,請參閱在 Power BI 中建立群組For more information, see Creating groups in Power BI.

以上就是 Power BI 中這個案例的工作。That wraps up our work in Power BI for this scenario. 將資料從我們的 SharePoint 清單提取到 Power BI 中開始,現在已圓滿的完成將 Power BI 報告內嵌回 SharePoint。You started by pulling data from our SharePoint lists into Power BI, and have now come full circle to embedding your Power BI report back into SharePoint.

後續步驟Next steps

此教學課程系列的下一個步驟是透過我們端對端建立的工作流程執行The next step in this tutorial series is to run through the workflow we created end-to-end.