본문으로 건너뛰기

Table.FromPartitions

일련의 분할된 테이블을 조합한 결과 테이블을 반환합니다.

Syntax

Table.FromPartitions(
partitionColumn as text,
partitions as list,
optional partitionColumnType as type
) as table

Remarks

일련의 분할된 테이블 partitions을(를) 결합한 결과로 생성되는 테이블을 반환합니다. partitionColumn은(는) 추가할 열의 이름입니다. 열 형식은 기본적으로 모두로 설정되지만 partitionColumnType이(가) 지정할 수도 있습니다.

Examples

Example #1

목록 {number}에서 항목 형식을 확인합니다.

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