Export-PowerBIReport

將 Power BI 報表匯出至 .pbix 檔案格式。

Syntax

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

要匯出之報表的識別碼。

Type:Guid
Aliases:ReportId
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-OutFile

要儲存匯出報表的輸出檔。 路徑不得已經存在。

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-WorkspaceId

包含要匯出之 Power BI 報表的工作區識別碼。

Type:Guid
Aliases:GroupId
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

輸入

None

輸出

System.Object