Power Apps 使用 Power BI 的常見方式:Power BI Tile

| PowerPlatform | 1 Reads

在 Power Platform 中,Power Apps、Power BI、Power Automate 和 Dataverse 雖然屬於同一套平台,但它們並不是同一個應用程式。

Power Apps 不會因為和 Power BI 同屬 Power Platform,就自動取得 Power BI 報表的內容。若想在 Canvas Power Apps 中直接顯示 Power BI,官方提供的通用方式是使用 Power BI Tile(Power BI タイル)控制項

Power BI Tile 是什麼?

Power BI Tile 可以理解為 Power Apps 畫面中的一個 Power BI 顯示區域。

基本結構如下:

Canvas Power Apps
└── Power BI Tile
      └── Power BI Report/Dashboard/Tile

使用者不需要離開 Power Apps 畫面,就可以直接查看 Power BI 的圖表和報表內容。

不過,Power Apps 並不是直接讀取 Power BI 的資料,而是將 Power BI 的內容嵌入自己的畫面中。

因此,以下功能仍然由 Power BI 負責:

  • 資料查詢

  • 圖表顯示

  • 篩選與互動

  • Power BI 權限

  • Power BI License

Power Apps 主要負責提供操作畫面,以及承載 Power BI 內容。

Power BI Tile 和外部連結的區別

如果 Power Apps 使用 Launch() 打開 Power BI 網址,使用者通常會跳轉到 Power BI Service 頁面。

Power Apps
↓ 點擊按鈕
Power BI Service

這種方式實作簡單,但使用者會感覺進入了另一套系統。

使用 Power BI Tile 時,Power BI 內容可以直接顯示在 Power Apps 內:

Power Apps 畫面
├── 案件資料
├── 操作按鈕
└── Power BI 報表

這樣的操作體驗更加統一。

RDL 報表需要特別注意

Power BI Tile 主要適合普通的 Power BI Report、Dashboard 和 Tile。

如果使用的是 Paginated Report,也就是 RDL 報表,不能直接假設所有 RDL 都可以正常放進 Power BI Tile。

常見做法有三種:

  1. 使用 Launch() 打開 Power BI Service 中的 RDL。

  2. 通過 Power BI REST API 直接輸出 PDF。

  3. 將 RDL 放入普通 Power BI Report 的 Paginated Report Visual,再將普通報表嵌入 Power Apps。

其中,第三種方式可以讓 RDL 間接出現在 Power Apps 中,但需要先進行實際驗證。

簡單整理

Power Apps 使用 Power BI 時,可以根據需求選擇不同方式:

在 Power Apps 內查看互動報表
→ Power BI Tile

打開完整 Power BI 頁面
→ Launch(Power BI URL)

點擊按鈕直接生成 PDF
→ Power Automate/REST API

在普通 Power BI Report 中顯示 RDL
→ Paginated Report Visual

總結

Power Apps 和 Power BI 雖然同屬 Power Platform,但並不是完全自動整合。

Power BI Tile 是 Canvas Power Apps 內建的 Power BI 嵌入方式。它可以讓使用者在 Power Apps 中直接查看 Power BI 報表,而不必跳轉到外部頁面。

不過,Power Apps 權限和 Power BI 權限仍然是分開管理的。即使使用者可以打開 Power Apps,也不代表一定有權限查看其中的 Power BI 報表。

因此,在設計系統時,需要同時考慮畫面整合、Power BI License、報表權限以及 RDL 的支援方式。

This article was last edited at