Table.FromPartitions
Particionált táblák csoportjának tartalmát egyesítő tábla visszaadása.
Syntax
Table.FromPartitions(
partitionColumn as text,
partitions as list,
optional partitionColumnType as type
) as table
Remarks
A(z) partitions paraméterben megadott particionált táblák csoportjának egyesítésével képzett tábla visszaadása. A felveendő oszlop nevét a(z) partitionColumn paraméter adja meg. Az oszlop alapértelmezett típusa any, ami a(z) partitionColumnType paraméterrel módosítható.
Examples
Example #1
Elemtípus megkeresése a {number} listában.
Table.FromPartitions(
"Year",
{
{
1994,
Table.FromPartitions(
"Month",
{
{
"Jan",
Table.FromPartitions(
"Day",
{
{1, #table({"Foo"}, {{"Bar"}})},
{2, #table({"Foo"}, {{"Bar"}})}
}
)
},
{
"Feb",
Table.FromPartitions(
"Day",
{
{3, #table({"Foo"}, {{"Bar"}})},
{4, #table({"Foo"}, {{"Bar"}})}
}
)
}
}
)
}
}
)
Result:
Table.FromRecords({
[
Foo = "Bar",
Day = 1,
Month = "Jan",
Year = 1994
],
[
Foo = "Bar",
Day = 2,
Month = "Jan",
Year = 1994
],
[
Foo = "Bar",
Day = 3,
Month = "Feb",
Year = 1994
],
[
Foo = "Bar",
Day = 4,
Month = "Feb",
Year = 1994
]
})
Category
Table.Row operations