本主題描述從發佈至 SharePoint 文件庫的 PowerPivot 活頁簿擷取數據的方式。
PowerPivot 資料會儲存在 Excel 活頁簿內。 連接字串是 SharePoint 網站上活頁簿的 URL。
PowerPivot 資料通常用於其所在的活頁簿中,作為樞紐分析表和樞紐分析圖背後的資料。 或者,PowerPivot 數據也可以當做外部數據源使用,其中活頁簿、儀錶板或報表會連接到 SharePoint 中的個別 Excel (.xlsx) 檔案,並擷取數據以供後續使用。 通常使用 PowerPivot 數據的用戶端工具包括 Excel、Power View、其他 Reporting Services 報表和 PerformancePoint。
在桌面上,PowerPivot 外掛程式使用 AMO 和 ADOMD.NET 在用戶端工作區中建立、處理及查詢 PowerPivot 資料。
在 SharePoint 伺服器陣列系統上,Excel Services 使用本機 MSOLAP OLE DB 提供者來連線到 PowerPivot 資料。 提供者將連線要求傳送至伺服器陣列中的 PowerPivot for SharePoint 伺服器。 該伺服器會載入數據、執行查詢,並傳回結果集。
在 SharePoint 中查詢 PowerPivot 數據
當您從 SharePoint 文件庫檢視 PowerPivot 活頁簿時,該活頁簿中的 PowerPivot 數據會被偵測、擷取並獨立於伺服器陣列中的 Analysis Services 伺服器實例上進行處理,而 Excel Services 則呈現呈現層。 您可以在瀏覽器視窗或具有 PowerPivot 增益集的 Excel 2010 桌面應用程式中檢視完整處理的活頁簿。
下圖顯示查詢處理請求如何流經伺服器群組。 因為 PowerPivot 數據是 Excel 2010 活頁簿的一部分,因此當使用者從 SharePoint 文檔庫開啟 Excel 活頁簿,並與包含 PowerPivot 數據的數據透視表或樞紐分析圖互動時,就會發生查詢處理的要求。
Excel Services 和 PowerPivot for SharePoint 元件會處理相同活頁簿 (.xlsx) 檔案的不同部分。 Excel Services 會偵測到 PowerPivot 資料,並向伺服器陣列中的 PowerPivot 伺服器提出處理要求。 PowerPivot 伺服器會將要求配置給 Analysis Services 服務實例,此實例會從內容庫中的活頁簿擷取數據並載入數據。 儲存在記憶體中的資料被合併回已呈現的活頁簿,並傳回 Excel Web Access,供瀏覽器視窗中呈現。
PowerPivot 活頁簿中的所有數據不是由 PowerPivot for SharePoint 處理。 Excel Services 會處理工作表中的數據表和儲存格數據。 PowerPivot for SharePoint 只處理與 PowerPivot 數據相關的數據透視表、樞紐分析圖和交叉分析篩選器。