Edit

Share via


Add-PowerBIRow

Adds rows to the specified table in a Power BI dataset.

Syntax

Dataset (Default)

Add-PowerBIRow
    -Dataset <Dataset>
    -TableName <String>
    -Rows <System.Collections.Generic.List`1[System.Management.Automation.PSObject]>
    [-WorkspaceId <Guid>]
    [-Workspace <Workspace>]
    [<CommonParameters>]

DatasetId

Add-PowerBIRow
    -DatasetId <Guid>
    -TableName <String>
    -Rows <System.Collections.Generic.List`1[System.Management.Automation.PSObject]>
    [-WorkspaceId <Guid>]
    [-Workspace <Workspace>]
    [<CommonParameters>]

Description

Inserts rows into a Power BI table contained within a dataset.

Examples

Example 1

PS C:\>Add-PowerBIRow -DataSetId 4b644350-f745-48dd-821c-f008350199a8 -TableName Table1 -Rows @{"Column1"="Value1";"Column2"="Value2"},@{"Column1"="Value1";"Column2"="Value2"}

This example inserts two rows to Table1.

Example 2

PS C:\>Add-PowerBIRow -DataSetId 4b644350-f745-48dd-821c-f008350199a8 -TableName Table1 -Rows (Import-Csv -Path ".\data.csv")

This example inserts rows from CSV to Table1.

Parameters

-Dataset

A dataset containing the table where rows are to be stored.

Parameter properties

Type:Dataset
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

Dataset
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-DatasetId

ID of the dataset containing the table where rows are to be stored.

Parameter properties

Type:Guid
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

DatasetId
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Rows

An array of rows to be stored in the table.

Parameter properties

Type:

System.Collections.Generic.List`1[System.Management.Automation.PSObject]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-TableName

Name of the table.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Workspace

Workspace containing the dataset and table for row insertion.

Parameter properties

Type:Workspace
Default value:None
Supports wildcards:False
DontShow:False
Aliases:Group

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-WorkspaceId

ID of the workspace containing the dataset and table for row insertion.

Parameter properties

Type:Guid
Default value:None
Supports wildcards:False
DontShow:False
Aliases:GroupId

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

Microsoft.PowerBI.Common.Api.Datasets.Dataset

Microsoft.PowerBI.Common.Api.Workspaces.Workspace

Outputs

Microsoft.PowerBI.Common.Api.Datasets.Dataset