Aracılığıyla paylaş


New-PowerBIDataset

Creates a new Power BI dataset object.

Sözdizimi

Default EnterprisePublishing

New-PowerBIDataset
    -Name <String>
    [-Tables <Table[]>]
    [<CommonParameters>]

Description

Initiates the creation of a Power BI dataset object. A Power BI dataset is a container for tables.

Örnekler

Example 1

PS C:\>$col1 = New-PowerBIColumn -Name ID -DataType Int64
PS C:\>$col2 = New-PowerBIColumn -Name Data -DataType String
PS C:\>$table1 = New-PowerBITable -Name SampleTable1 -Columns $col1,$col2
PS C:\>
PS C:\>$col3 = New-PowerBIColumn -Name ID -DataType Int64
PS C:\>$col4 = New-PowerBIColumn -Name Date -DataType DateTime
PS C:\>$col5 = New-PowerBIColumn -Name Detail -DataType String
PS C:\>$col6 = New-PowerBIColumn -Name Result -DataType Double
PS C:\>$table2 = New-PowerBITable -Name SampleTable2 -Columns $col3,$col4,$col5,$col6
PS C:\>
PS C:\>$dataset = New-PowerBIDataSet -Name SampleDataSet -Tables $table1,$table2
PS C:\>
PS C:\>Add-PowerBIDataSet -DataSet $dataset

This example instantiates a table with two columns and another table with four columns, and instantiates a dataset. Then, it creates the dataset in Power BI.

Parametreler

-Name

Dataset Name.

Parametre özellikleri

Tür:String
Default value:None
Joker karakterleri destekler:False
DontShow:False

Parametre kümeleri

(All)
Position:Named
Zorunlu:True
İşlem hattından gelen değer:False
İşlem hattından özellik adına göre değer:False
Kalan argümanlardan elde edilen değer:False

-Tables

An array of Table objects

Parametre özellikleri

Tür:

Table[]

Default value:None
Joker karakterleri destekler:False
DontShow:False

Parametre kümeleri

(All)
Position:Named
Zorunlu:False
İşlem hattından gelen değer:False
İşlem hattından özellik adına göre değer:False
Kalan argümanlardan elde edilen değer: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.

Çıkışlar

Microsoft.PowerBI.Common.Api.Datasets.Dataset