New-PowerBITable

Yeni bir Power BI tablo nesnesi oluşturur.

Syntax

New-PowerBITable
   -Name <String>
   [-Columns <Column[]>]
   [<CommonParameters>]

Description

Yeni bir Power BI tablo nesnesi oluşturmayı başlatır. Tablo, sütunlar ve satırlar için bir kapsayıcıdır ve veri kümelerinin içinde yer alır.

Örnekler

Örnek 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

Bu örnek, iki sütunlu bir tablo ve dört sütunlu başka bir tablo oluşturur ve bir veri kümesinin örneğini oluşturur. Ardından veri kümesini Power BI'da oluşturur.

Parametreler

-Columns

Sütun nesneleri dizisi.

Type:Column[]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Name

Tablonun adı.

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

Çıkışlar

Microsoft.PowerBI.Common.Api.Datasets.Table