หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
วากยสัมพันธ์
Table.UnpivotOtherColumns(
table as table,
pivotColumns as list,
attributeColumn as text,
valueColumn as text
) as table
ประมาณ
แปลคอลัมน์ทั้งหมดนอกเหนือจากชุดที่ระบุเป็นคู่ของค่าแอตทริบิวต์ รวมกับค่าที่เหลือในแต่ละแถว
ตัวอย่างที่ 1
แปลคอลัมน์ทั้งหมดนอกเหนือจากชุดที่ระบุเป็นคู่ของค่าแอตทริบิวต์ รวมกับค่าที่เหลือในแต่ละแถว
การใช้งาน
Table.UnpivotOtherColumns(
Table.FromRecords({
[key = "key1", attribute1 = 1, attribute2 = 2, attribute3 = 3],
[key = "key2", attribute1 = 4, attribute2 = 5, attribute3 = 6]
}),
{"key"},
"column1",
"column2"
)
ผลลัพธ์ของ
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]
})