मुख्य कंटेंट तक स्किप करें

Table.UnpivotOtherColumns

एक निर्दिष्ट सेट के अलावा अन्य सभी स्तंभों का विशेषता-मान जोड़े में अनुवाद करता है.

Syntax

Table.UnpivotOtherColumns(
table as table,
pivotColumns as list,
attributeColumn as text,
valueColumn as text
) as table

Remarks

प्रत्येक पंक्ति में मौजूद शेष मानों के साथ संयोजित, विशेषता-मान युग्मों में निर्दिष्ट सेट के अलावा अन्य सभी स्तंभों का अनुवाद करता है.

Examples

Example #1

प्रत्येक पंक्ति में मौजूद शेष मानों के साथ संयोजित, विशेषता-मान युग्मों में निर्दिष्ट सेट के अलावा अन्य सभी स्तंभों का अनुवाद करता है.

Table.UnpivotOtherColumns(
Table.FromRecords({
[key = "key1", attribute1 = 1, attribute2 = 2, attribute3 = 3],
[key = "key2", attribute1 = 4, attribute2 = 5, attribute3 = 6]
}),
{"key"},
"column1",
"column2"
)

Result:

Table.FromRecords({
[key = "key1", column1 = "attribute1", column2 = 1],
[key = "key1", column1 = "attribute2", column2 = 2],
[key = "key1", column1 = "attribute3", column2 = 3],
[key = "key2", column1 = "attribute1", column2 = 4],
[key = "key2", column1 = "attribute2", column2 = 5],
[key = "key2", column1 = "attribute3", column2 = 6]
})

Category

Table.Column operations