Add-PowerBIRow
Menambahkan baris ke tabel yang ditentukan dalam himpunan data Power BI.
Sintaks
Add-PowerBIRow
-Dataset <Dataset>
-TableName <String>
-Rows <System.Collections.Generic.List`1[System.Management.Automation.PSObject]>
[-WorkspaceId <Guid>]
[-Workspace <Workspace>]
[<CommonParameters>]
Add-PowerBIRow
-DatasetId <Guid>
-TableName <String>
-Rows <System.Collections.Generic.List`1[System.Management.Automation.PSObject]>
[-WorkspaceId <Guid>]
[-Workspace <Workspace>]
[<CommonParameters>]
Deskripsi
Menyisipkan baris ke dalam tabel Power BI yang terkandung dalam himpunan data.
Contoh
Contoh 1
PS C:\>Add-PowerBIRow -DataSetId 4b644350-f745-48dd-821c-f008350199a8 -TableName Table1 -Rows @{"Column1"="Value1";"Column2"="Value2"},@{"Column1"="Value1";"Column2"="Value2"}
Contoh ini menyisipkan dua baris ke Table1.
Contoh 2
PS C:\>Add-PowerBIRow -DataSetId 4b644350-f745-48dd-821c-f008350199a8 -TableName Table1 -Rows (Import-Csv -Path ".\data.csv")
Contoh ini menyisipkan baris dari CSV ke Table1.
Parameter
-Dataset
Himpunan data yang berisi tabel tempat baris akan disimpan.
Type: | Dataset |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-DatasetId
ID himpunan data yang berisi tabel tempat baris akan disimpan.
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Rows
Array baris yang akan disimpan dalam tabel.
Type: | System.Collections.Generic.List`1[System.Management.Automation.PSObject] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-TableName
Nama tabel.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Workspace
Ruang kerja yang berisi himpunan data dan tabel untuk penyisipan baris.
Type: | Workspace |
Aliases: | Group |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-WorkspaceId
ID ruang kerja yang berisi himpunan data dan tabel untuk penyisipan baris.
Type: | Guid |
Aliases: | GroupId |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Input
Microsoft.PowerBI.Common.Api.Datasets.Dataset
Microsoft.PowerBI.Common.Api.Workspaces.Workspaces
Output
Microsoft.PowerBI.Common.Api.Datasets.Dataset