Export-PowerBIReport
將 Power BI 報表匯出至 .pbix 檔案格式。
語法
Export-PowerBIReport
[-WorkspaceId <Guid>]
-Id <Guid>
-OutFile <String>
[<CommonParameters>]
Description
將 Power BI 服務中的 Power BI 報表儲存至 .pbix 檔案,此檔案可由 Power BI Desktop 載入,或上傳回 Power BI 服務。 執行此命令之前,請確定您使用 Connect-PowerBIServiceAccount 登入。
範例
範例 1
PS C:\> Export-PowerBIReport -Id 9b519499-5ba1-4f1c-878b-be3a69f1791f -OutFile .\Sales.pbix
將標識符為 9b519499-5ba1-4f1c-878b-be3a69f1791f 的報告儲存到您目前工作目錄中名為 Sales.pbix 的檔案中($PWD)。
參數
-Id
要匯出之報表的標識碼。
類型: | Guid |
別名: | ReportId |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-OutFile
要儲存匯出報表的輸出檔案。 路徑不得已存在。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-WorkspaceId
包含要匯出之 Power BI 報表的工作區識別碼。
類型: | Guid |
別名: | GroupId |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
輸入
None
輸出
System.Object