การฝึกอบรม
โมดูล
Author a basic formula that uses tables and records in a Power Apps canvas app - Training
Learn how to author a basic formula that uses tables and records in a Power Apps canvas app.
เบราว์เซอร์นี้ไม่ได้รับการสนับสนุนอีกต่อไป
อัปเกรดเป็น Microsoft Edge เพื่อใช้ประโยชน์จากคุณลักษณะล่าสุด เช่น การอัปเดตความปลอดภัยและการสนับสนุนด้านเทคนิค
Table.Partition(table as table, column as text, groups as number, hash as function) as list
แบ่งพาร์ติชัน table
เป็นรายการของจํานวนตาราง groups
โดยยึดตามค่าของ column
และฟังก์ชัน hash
ฟังก์ชัน hash
จะใช้กับค่าของแถว column
เพื่อรับค่าแฮชสําหรับแถวนั้น
groups
มอดุโลของค่าแฮชจะกําหนดว่าจะวางแถวใดในตารางที่ส่งกลับ
table
: ตารางที่จะแบ่งพาร์ติชันcolumn
: คอลัมน์ที่จะแฮชเพื่อกําหนดตารางที่ส่งกลับที่มีแถวอยู่groups
: จํานวนตารางที่ตารางอินพุตจะถูกแบ่งพาร์ติชันhash
: ฟังก์ชันที่ใช้เพื่อรับค่าแฮชแบ่งพาร์ติชันของตาราง ({[a = 2, b = 4], [a = 6, b = 8], [a = 2, b = 4], [a = 1, b = 4]})
เป็น 2 ตารางในคอลัมน์ [a] โดยใช้ค่าของคอลัมน์เป็นฟังก์ชันแฮช
การใช้งาน
Table.Partition(
Table.FromRecords({
[a = 2, b = 4],
[a = 1, b = 4],
[a = 2, b = 4],
[a = 1, b = 4]
}),
"a",
2,
each _
)
ผลลัพธ์ของ
{
Table.FromRecords({
[a = 2, b = 4],
[a = 2, b = 4]
}),
Table.FromRecords({
[a = 1, b = 4],
[a = 1, b = 4]
})
}
การฝึกอบรม
โมดูล
Author a basic formula that uses tables and records in a Power Apps canvas app - Training
Learn how to author a basic formula that uses tables and records in a Power Apps canvas app.
เอกสาร
เรียนรู้เพิ่มเติมเกี่ยวกับ: Table.Column
Table.FromRecords - PowerQuery M
เรียนรู้เพิ่มเติมเกี่ยวกับ: Table.FromRecords
เรียนรู้เพิ่มเติมเกี่ยวกับ: Table.Keys