Thep Excel

Function Explainer

Table functions · Power Query 69 ฟังก์ชัน

69 ฟังก์ชัน

เรียงตาม

ฟังก์ชัน ใช้ทำอะไร มีตั้งแต่ นิยม ยาก ประโยชน์
Table.TransformColumnTypes Table functions Table.TransformColumnTypes(table as table, typeTransformations as list, optional culture as nullable text) as table

Table.TransformColumnTypes เปลี่ยน Data Type ของคอลัมน์ที่ระบุให้เป็นประเภทใหม่ (เช่น Text เป็น Number, Date เป็น Text) โดยใช้ built-in conversion methods เบื้องหลัง รองรับการแปลงหลายคอลัมน์พร้อมกัน และสามารถระบุ culture parameter เพื่อจัดการ locale-specific formatting สำหรับวันที่และตัวเลข เหมาะสำหรับขั้นตอนเตรียมข้อมูลก่อน Load เข้า Data Model เพื่อป้องกัน conversion errors และเพิ่มประสิทธิภาพ ใช้ร่วมกับ Table.TransformColumns, Number.From, Text.From และ Date.From เมื่อต้องการ custom transformation logic

นิยม 10 ยาก 2 ประโยชน์ 10

10 2 10
Table.RemoveColumns Table functions Table.RemoveColumns(table as table, columns as any, optional missingField as nullable number) as table

Table.RemoveColumns ใช้ลบคอลัมน์เดียวหรือหลายคอลัมน์จาก table ครั้งเดียว เป็นวิธีที่สะดวกเมื่อต้องการลบ column ที่ไม่ต้องการ เช่น unwanted columns จากการโหลด Excel หรือ column ชั่วคราวหลังใช้คำนวณเสร็จ

นิยม 10 ยาก 2 ประโยชน์ 9

10 2 9
Table.PromoteHeaders Table functions Table.PromoteHeaders(table as table, optional options as nullable record) as table

Table.PromoteHeaders เลื่อนข้อมูลในแถวแรกของตารางขึ้นมาเป็นชื่อคอลัมน์ และลบแถวนั้นออกจากส่วนข้อมูล รองรับพารามิเตอร์เสริม options เป็น record ที่มีฟิลด์ PromoteAllScalars สำหรับอนุญาตให้ค่าที่ไม่ใช่ข้อความ เช่น ตัวเลขและวันที่ ถูกแปลงเป็นชื่อคอลัมน์ได้ และ Culture สำหรับกำหนดรูปแบบการแปลงค่าตามภูมิภาค.ที่เจ๋งคือ PromoteAllScalars=true ช่วยให้หัวตารางที่เป็นตัวเลขหรือวันที่ก็ใช้ได้ ไม่ติดว่าต้องเป็นข้อความอย่างเดียว

นิยม 10 ยาก 2 ประโยชน์ 10

10 2 10
Table.SelectRows Table functions Table.SelectRows(table as table, condition as function) as table

Table.SelectRows เป็นฟังก์ชันสำหรับกรองตาราง (filter table) ใน Power Query โดยใช้ฟังก์ชันเงื่อนไข (condition function) เพื่อตรวจสอบแต่ละแถว ถ้าเงื่อนไขคืนค่า true จะเก็บแถวนั้นไว้ ถ้าเป็น false จะตัดทิ้ง สามารถใช้ keyword 'each' ร่วมกับการอ้างอิงคอลัมน์ด้วย [ColumnName] เพื่อเขียนเงื่อนไขได้สะดวก รองรับการกรองตามตัวเลข ข้อความ วันที่ การตรวจสอบค่า null และเงื่อนไขที่ซับซ้อนด้วย and/or operators ฟังก์ชันนี้รองรับ Query Folding ซึ่งช่วยเพิ่มประสิทธิภาพเมื่อทำงานกับ data source ขนาดใหญ่

นิยม 10 ยาก 3 ประโยชน์ 10

10 3 10
Table.AddColumn Table functions Table.AddColumn(table as table, newColumnName as text, columnGenerator as function, optional columnType as nullable type) as table

Table.AddColumn เพิ่มคอลัมน์ใหม่ลงในตารางโดยคำนวณค่าจากฟังก์ชันที่กำหนด ใช้คำสั่ง each เพื่ออ้างอิงข้อมูลในแต่ละแถว เช่น each [Price] * [Quantity] สามารถระบุชนิดข้อมูลได้เพื่อเพิ่มประสิทธิภาพและป้องกันข้อผิดพลาดจากการคาดเดาชนิดข้อมูล ทำงานแบบทีละแถวและเหมาะสำหรับสร้างคอลัมน์คำนวณ รวมข้อมูล ใช้เงื่อนไข และการแปลงข้อมูลต่างๆ ใช้ร่วมกับฟังก์ชัน Table.TransformColumns สำหรับแก้ไขคอลัมน์เดิม Table.AddIndexColumn สำหรับเพิ่มหมายเลขลำดับ Table.SelectRows สำหรับกรองแถว Table.FromRecords สำหรับสร้างตารางจากข้อมูล Text.Combine สำหรับรวมข้อความ Number.Round สำหรับปัดเศษ Date.Year สำหรับดึงค่าปี และ Text.Upper สำหรับแปลงเป็นตัวพิมพ์ใหญ่ เพื่อสร้างกระบวนการแปลงข้อมูลที่สมบูรณ์

นิยม 10 ยาก 3 ประโยชน์ 10

10 3 10
Table.RenameColumns Table functions Table.RenameColumns(table as table, renames as list, optional missingField as nullable number) as table

Table.RenameColumns ใช้สำหรับเปลี่ยนชื่อคอลัมน์หนึ่งหรือหลายคอลัมน์ในตารางพร้อมกัน โดยส่งผ่าน list ของ rename pairs {ชื่อเก่า, ชื่อใหม่}

นิยม 9 ยาก 2 ประโยชน์ 9

9 2 9
Table.ExpandTableColumn Table functions Table.ExpandTableColumn(table as table, column as text, columnNames as list, optional newColumnNames as nullable list) as table

Table.ExpandTableColumn ใช้แตกข้อมูลจากคอลัมน์ที่เป็น nested table ออกมาเป็นคอลัมน์และแถวปกติในตารางหลัก โดยรักษาข้อมูลคอลัมน์อื่นไว้ และทำซ้ำแถวหลักสำหรับแต่ละแถวในตารางซ้อน มักใช้คู่กับ Table.NestedJoin หลัง join ตาราง หรือใช้ขยายข้อมูลจากแหล่งที่มีโครงสร้างแบบ hierarchical เช่น JSON หรือ API

นิยม 9 ยาก 4 ประโยชน์ 9

9 4 9
Table.Sort Table functions Table.Sort(table as table, comparisonCriteria as any) as table

เรียงลำดับข้อมูลในตารางตามคอลัมน์ที่ระบุ รองรับการเรียงหลายระดับและกำหนดทิศทางการเรียง

นิยม 9 ยาก 2 ประโยชน์ 9

9 2 9
Table.Group Table functions Table.Group(table as table, key as any, aggregatedColumns as list, optional groupKind as nullable number, optional comparer as nullable function) as table

Table.Group จัดกลุ่มข้อมูลตามคอลัมน์ที่กำหนดและสรุปผลในแต่ละกลุ่มด้วย aggregation functions เช่น List.Sum, List.Count, List.Average คล้ายกับ GROUP BY ใน SQL แต่ทรงพลังกว่าเพราะสามารถจัดกลุ่มหลายคอลัมน์พร้อมกันและสร้างคอลัมน์สรุปผลหลายคอลัมน์ในคำสั่งเดียว รองรับ GroupKind.Local เพื่อเพิ่มประสิทธิภาพเมื่อข้อมูลเรียงลำดับแล้ว

นิยม 9 ยาก 6 ประโยชน์ 9

9 6 9
Table.SelectColumns Table functions = Table.SelectColumns(table, columns, optional missingField)

Table.SelectColumns ใช้สำหรับเลือกคอลัมน์เฉพาะจากตารางและสร้างตารางใหม่ที่มีเฉพาะคอลัมน์เหล่านั้น

นิยม 9 ยาก 2 ประโยชน์ 9

9 2 9
Table.Skip Table functions Table.Skip(table as table, optional countOrCondition as any) as table

Table.Skip คืนตารางที่ลบแถวแรกๆ ออกไปแล้ว โดยสามารถระบุจำนวนแถวที่ต้องการข้าม หรือระบุเงื่อนไข (condition function) เพื่อข้ามแถวที่ตรงเงื่อนไขจนกว่าจะพบแถวที่ไม่ตรงแล้วหยุด ถ้าไม่ระบุจะข้ามแถวแรก 1 แถว ถ้าส่งเป็นตัวเลข เช่น 5 จะข้าม 5 แถวแรก ถ้าส่งเป็นฟังก์ชัน เช่น each [Amount] > 0 จะข้ามแถวที่ Amount > 0 จนกว่าจะเจอแถวที่ Amount ≤ 0

นิยม 8 ยาก 2 ประโยชน์ 8

8 2 8
Table.Combine Table functions Table.Combine(tables as list, optional columns as any) as table

Table.Combine ใช้สำหรับรวม list ของ table เข้าเป็น table เดียว ยับยั้ง append ตัว 1 แถวหลาย ๆ ตารางพร้อมกัน

นิยม 8 ยาก 3 ประโยชน์ 8

8 3 8
Table.ReplaceValue Table functions = Table.ReplaceValue(table as table, oldValue as any, newValue as any, replacer as function, columnsToSearch as list) as table

Table.ReplaceValue ใช้สำหรับค้นหาและแทนที่ค่าในตารางได้หลายวิธี ตั้งแต่แทนที่ค่าทั้งหมดไปจนถึงแทนที่แบบมีเงื่อนไข

นิยม 8 ยาก 3 ประโยชน์ 8

8 3 8
Table.FirstN Table functions Table.FirstN(table as table, countOrCondition as any) as table

Table.FirstN คืนแถวแรกๆ จากตาราง โดยสามารถระบุจำนวนแถวที่ต้องการ หรือระบุเงื่อนไข (condition function) เพื่อดึงแถวที่ตรงเงื่อนไขจนกว่าจะพบแถวที่ไม่ตรงแล้วหยุด ถ้าส่งเป็นตัวเลข เช่น 5 จะได้ 5 แถวแรก ถ้าส่งเป็นฟังก์ชัน เช่น each [Amount] > 0 จะได้แถวที่ Amount > 0 จนกว่าจะเจอแถวที่ Amount ≤ 0

นิยม 8 ยาก 2 ประโยชน์ 8

8 2 8
Table.ExpandRecordColumn Table functions Table.ExpandRecordColumn(table as table, column as text, fieldNames as list, optional newColumnNames as nullable list) as table

Table.ExpandRecordColumn ขยายคอลัมน์ที่เก็บ Record values ออกเป็นคอลัมน์แยกกัน โดยแต่ละฟิลด์ใน Record จะกลายเป็นคอลัมน์ใหม่ สามารถระบุว่าต้องการขยายฟิลด์ใดบ้างผ่าน fieldNames parameter และสามารถกำหนดชื่อคอลัมน์ใหม่ผ่าน newColumnNames เพื่อป้องกันชื่อซ้ำ มักใช้หลังจาก API calls หรือการ parse JSON ที่ได้ข้อมูลแบบ nested

นิยม 8 ยาก 4 ประโยชน์ 8

8 4 8
Table.Distinct Table functions Table.Distinct(table as table, optional equationCriteria as any) as table

Table.Distinct ลบแถวที่ซ้ำกันออกจากตารางตามคอลัมน์ที่กำหนด หรือทั้งตารางถ้าไม่ระบุคอลัมน์

นิยม 8 ยาก 2 ประโยชน์ 8

8 2 8
Table.FillDown Table functions = Table.FillDown(table as table, columns as list) as table

Table.FillDown เติมเต็มค่า null ด้วยค่าจากแถวด้านบน (forward fill) เหมาะสำหรับข้อมูลที่มีการ merge cell หรือจัดกลุ่มข้อมูลแบบ hierarchical ทำให้ได้ตารางที่สมบูรณ์พร้อมใช้ต่อได้เลย

นิยม 8 ยาก 3 ประโยชน์ 8

8 3 8
Table.NestedJoin Table functions Table.NestedJoin(table1 as table, key1 as any, table2 as any, key2 as any, newColumnName as text, optional joinKind as nullable number, optional keyEqualityComparers as nullable list) as table

Table.NestedJoin เชื่อมตารางสองตารางด้วยคีย์ที่กำหนด และสร้างคอลัมน์ใหม่ที่เก็บตารางย่อยของแถวที่จับคู่ได้ เหมาะกับงาน Merge ที่ต้องการเก็บรายละเอียดฝั่งขวาไว้เป็น nested table ก่อนจะ Expand หรือทำขั้นตอนต่อ

นิยม 8 ยาก 5 ประโยชน์ 9

8 5 9
Table.RowCount Table functions Table.RowCount(table as table) as number

ฟังก์ชันสำหรับนับจำนวนแถวทั้งหมดในตาราง โดยคืนค่าเป็นตัวเลขครับ

นิยม 8 ยาก 2 ประโยชน์ 8

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

Table.UnpivotOtherColumns แปลงคอลัมน์ที่ไม่ได้ระบุทั้งหมดให้กลายเป็นแถว (Unpivot) โดยระบุเฉพาะคอลัมน์ที่ต้องการคงไว้ ข้อดีคือเป็น Dynamic ถ้ามีคอลัมน์ใหม่เพิ่มเข้ามาในอนาคตก็จะถูก Unpivot ให้อัตโนมัติ เหมาะสำหรับแปลงข้อมูลจาก Wide Format (หลายคอลัมน์) ให้เป็น Long Format (หลายแถว) สำหรับ PivotTable และ Database

นิยม 8 ยาก 5 ประโยชน์ 9

8 5 9
Table.Unpivot Table functions Table.Unpivot(table as table, pivotColumns as list, attributeColumn as text, valueColumn as text) as table

Table.Unpivot แปลงคอลัมน์ที่ระบุให้กลายเป็นแถว (Unpivot) โดยสร้าง 2 คอลัมน์ใหม่ คอลัมน์แรกเก็บชื่อคอลัมน์เดิม (Attribute) และคอลัมน์ที่สองเก็บค่า (Value) ฟังก์ชันนี้จะข้ามค่า null โดยอัตโนมัติ เหมาะสำหรับเตรียมข้อมูลแบบ Wide Format ให้กลายเป็น Long Format สำหรับใช้ใน Power BI หรือ Pivot Table

นิยม 8 ยาก 5 ประโยชน์ 9

8 5 9
Table.Transpose Table functions Table.Transpose(table as table, optional columns as any) as table

Table.Transpose จะกลับด้านตาราง คล้ายกับการ Copy > Paste Special > Transpose ใน Excel โดยข้อมูลในแถวที่ 1 จะกลายเป็นคอลัมน์ที่ 1 แถวที่ 2 เป็นคอลัมน์ที่ 2 ไปเรื่อยๆ

นิยม 7 ยาก 3 ประโยชน์ 7

7 3 7
Table.Pivot Table functions = Table.Pivot(table, pivotValues, attributeColumn, valueColumn, [aggregationFunction])

Table.Pivot แปลงข้อมูล long format (แนวตั้ง) เป็น wide format (แนวนอน) โดยหมุนค่า attribute ให้เป็นคอลัมน์ใหม่

นิยม 7 ยาก 5 ประโยชน์ 8

7 5 8
Table.ExpandListColumn Table functions Table.ExpandListColumn(table as table, column as text) as table

Table.ExpandListColumn ใช้สำหรับขยายคอลัมน์ที่เก็บข้อมูลแบบ List ให้เป็นแถวแยก โดยแต่ละรายการใน List จะกลายเป็นแถวใหม่ ส่วนข้อมูลในคอลัมน์อื่นจะถูกทำซ้ำตามจำนวน

นิยม 7 ยาก 4 ประโยชน์ 7

7 4 7
Table.AddIndexColumn Table functions Table.AddIndexColumn(table, newColumnName, [initialValue], [increment], [columnType])

Table.AddIndexColumn ใช้สำหรับเพิ่มคอลัมน์ที่มีลำดับเลขให้กับตาราง ช่วยให้สามารถกำหนดหมายเลขแถวตามลำดับได้

นิยม 7 ยาก 3 ประโยชน์ 7

7 3 7
Table.CombineColumns Table functions Table.CombineColumns(table as table, sourceColumns as list, combiner as function, newColumnName as text) as table

Table.CombineColumns รวมข้อมูลจากหลายคอลัมน์เข้าด้วยกันเป็นคอลัมน์เดียว โดยใช้ฟังก์ชัน Combiner ที่กำหนดเอง เช่น รวมชื่อ-นามสกุล หรือสร้างรหัสประจำตัว

นิยม 7 ยาก 3 ประโยชน์ 7

7 3 7
Table.Join Table functions Table.Join(table1 as table, key1 as any, table2 as table, key2 as any, optional joinKind as nullable number, optional joinAlgorithm as nullable number, optional keyEqualityComparers as nullable list) as table

Table.Join ใช้รวมตารางสองตารางโดยจับคู่ค่าในคอลัมน์กำหนด สนับสนุนทุกประเภท join (Inner, Left Outer, Right Outer, Full Outer, Anti, Semi) เหมือน SQL Join

นิยม 7 ยาก 5 ประโยชน์ 8

7 5 8
Table.ColumnNames Table functions = Table.ColumnNames(table as table) as list

Table.ColumnNames ดึงชื่อคอลัมน์ทั้งหมดจากตาราง และส่งกลับมาเป็นลิสต์ข้อความ ซึ่งจำเป็นสำหรับการตรวจสอบ schema แบบ dynamic

นิยม 7 ยาก 2 ประโยชน์ 7

7 2 7
Table.ReorderColumns Table functions Table.ReorderColumns(table as table, columnOrder as list, optional missingField as nullable number) as table

จัดเรียงลำดับคอลัมน์ในตารางใหม่ตามลำดับที่ต้องการ พร้อมจัดการกรณีคอลัมน์หายไป

นิยม 7 ยาก 2 ประโยชน์ 7

7 2 7
Table.FromColumns Table functions Table.FromColumns(lists as list, optional columns as any) as table

Table.FromColumns สร้างตารางจากลิสต์ของลิสต์ โดยแต่ละลิสต์จะเป็นคอลัมน์หนึ่ง เหมาะกับข้อมูล column-oriented จาก API หรือ JSON

นิยม 6 ยาก 4 ประโยชน์ 7

6 4 7
Table.TransformColumns Table functions Table.TransformColumns(table, transformOperations, [defaultTransformation], [missingField])

Table.TransformColumns ใช้สำหรับแปลงข้อมูลในคอลัมน์โดยใช้ฟังก์ชันที่กำหนดไว้ แต่ละคอลัมน์สามารถมีการแปลงแตกต่างกันได้ รองรับการเปลี่ยนแปลงประเภทข้อมูลในเวลาเดียวกัน

นิยม 6 ยาก 6 ประโยชน์ 7

6 6 7
Table.FillUp Table functions Table.FillUp(table as table, columns as list) as table

Table.FillUp เติมเต็มค่าว่าง (null) ด้วยค่าจากแถวด้านล่างขึ้นไป ทำงานตรงกันข้ามกับ FillDown ใช้สำหรับจัดการข้อมูลที่ค่าสรุปอยู่ล่างสุด

นิยม 6 ยาก 3 ประโยชน์ 6

6 3 6
Table.ToRecords Table functions Table.ToRecords(table as table) as list

Table.ToRecords แปลงตารางให้เป็น List โดยแต่ละแถวกลายเป็น Record พร้อมชื่อคอลัมน์เป็น Field Name ทำให้สะดวกในการวนลูปแบบมีโครงสร้าง

นิยม 6 ยาก 4 ประโยชน์ 7

6 4 7
Table.DuplicateColumn Table functions Table.DuplicateColumn(table as table, columnName as text, newColumnName as text, optional columnType as nullable type) as table

สร้างคอลัมน์ใหม่โดยคัดลอกค่ามาจากคอลัมน์ที่มีอยู่เดิม (Duplicate)

นิยม 6 ยาก 2 ประโยชน์ 6

6 2 6
Table.ColumnCount Table functions table_columncount(value as any) as any

Table.ColumnCount ใช้สำหรับการประมวลผล

นิยม 6 ยาก 2 ประโยชน์ 6

6 2 6
Table.Column Table functions = Table.Column(table as table, columnName as text) as list

Table.Column ดึงค่าจากคอลัมน์เฉพาะออกมาจากตาราง และคืนค่าเป็น List เพื่อให้สามารถนำไปประมวลผลต่อได้

นิยม 6 ยาก 3 ประโยชน์ 6

6 3 6
Table.FromRecords Table functions Table.FromRecords(records as list, optional columns as any, optional missingField as nullable number) as table

แปลง List ของ Record เป็นตาราง โดยแต่ละ Record กลายเป็นหนึ่งแถว เหมาะสำหรับข้อมูลจาก API หรือ JSON

นิยม 6 ยาก 4 ประโยชน์ 7

6 4 7
Table.ConformToPageReader Table functions Table.ConformToPageReader(table as table, shapingFunction as function) as table

Table.ConformToPageReader ปรับโครงสร้างตารางให้เข้ากับกลไก page reader โดยรับฟังก์ชันสำหรับการจัดรูปแบบ เป็นฟังก์ชันภายในของ Power Query ไม่แนะนำให้ใช้ในโค้ดทั่วไป

นิยม 5 ยาก 4 ประโยชน์ 6

5 4 6
Table.Split Table functions Table.Split(table as table, pageSize as number) as list

แบ่งตารางออกเป็นรายการของตารางย่อยตามจำนวนแถวที่กำหนด เหมาะสำหรับ Pagination และ Batch Processing

นิยม 5 ยาก 4 ประโยชน์ 6

5 4 6
Table.FromList Table functions = Table.FromList(list as list, optional splitter as nullable function, optional columns as any, optional default as any, optional extraValues as nullable number) as table

แปลง List เป็น Table โดยใช้ฟังก์ชัน Splitter เพื่อแยกข้อมูลเป็นคอลัมน์

นิยม 5 ยาก 4 ประโยชน์ 6

5 4 6
RowExpression.From Table functions RowExpression.From(function as function) as record

RowExpression.From คืนค่า AST (abstract syntax tree) ของตัวฟังก์ชันที่ส่งเข้า โดยทำให้เป็น "row expression" ที่มีรูปแบบมาตรฐาน เหมาะสำหรับงานภายใน (internal) และการวิเคราะห์/แปลงนิพจน์ เช่น เงื่อนไขที่ใช้กรองแถว (each [Col] = "X")

นิยม 5 ยาก 4 ประโยชน์ 6

5 4 6
Table.TransformColumnNames Table functions Table.TransformColumnNames(table as table, nameGenerator as function, optional options as nullable record) as table

Table.TransformColumnNames ใช้ฟังก์ชันแปลงชื่อ (Name Generator) เพื่อเปลี่ยนชื่อคอลัมน์ทั้งหมดในตาราง เหมาะสำหรับจัดรูปแบบชื่อคอลัมน์เป็นแบบเดียวกัน เช่น ตัวพิมพ์ใหญ่ ลบช่องว่าง หรือเพิ่ม Prefix

นิยม 5 ยาก 4 ประโยชน์ 6

5 4 6
Table.AddFuzzyClusterColumn Table functions = Table.AddFuzzyClusterColumn(table as table, columnName as text, newColumnName as text, optional options as nullable record) as table

Table.AddFuzzyClusterColumn เพิ่มคอลัมน์ใหม่ที่มีค่าตัวแทนสำหรับแต่ละกลุ่ม โดยจับคู่ข้อมูลที่คล้ายกัน แม้จะมีข้อความที่ต่างกัน เช่น การสะกด ตัวอักษรพิมพ์ใหญ่-เล็ก หรือช่องว่าง

นิยม 5 ยาก 4 ประโยชน์ 6

5 4 6
Table.First Table functions Table.First(table as table, optional default as any) as any

ดึงแถวแรก (Record) จากตารางข้อมูล พร้อมตัวเลือกค่า default สำหรับกรณีตารางว่าง

นิยม 5 ยาก 4 ประโยชน์ 6

5 4 6
Table.AddMatchColumn Table functions Table.AddMatchColumn(table as table, newColumnName as text, tableColumnPairs as list, optional joinKind as JoinKind) as table

Table.AddMatchColumn เพิ่มคอลัมน์ใหม่ที่มีค่าจากการแมตช์แถวในตารางอื่น โดยค้นหาค่าที่ตรงกับคีย์ เหมือน VLOOKUP แต่ทำงานโดยตรงบนตารางทั้งหมด

นิยม 5 ยาก 4 ประโยชน์ 6

5 4 6
Table.ToColumns Table functions = Table.ToColumns(table as table) as list

Table.ToColumns แปลงตาราง (Table) ให้เป็น List ของ List โดยแต่ละ List ย่อยแทนข้อมูลจากคอลัมน์เดียว เรียงตามลำดับคอลัมน์จากซ้ายไปขวา ส่วนกลับกันของ Table.FromColumns

นิยม 5 ยาก 4 ประโยชน์ 6

5 4 6
Table.ColumnNames Table functions = Table.ColumnNames(table as table) as list

Table.ColumnNames ดึงชื่อคอลัมน์ทั้งหมดจากตารางและคืนค่าเป็นลิสต์ของข้อความ เหมาะสำหรับการทำงานแบบไดนามิกกับโครงสร้างตารางที่ไม่แน่นอน

นิยม 5 ยาก 4 ประโยชน์ 6

5 4 6
Table.ReverseRows Table functions Table.ReverseRows(table as table) as table

Table.ReverseRows คืนค่าตารางที่มีลำดับแถวตรงข้ามกับตารางต้นฉบับ (Reverse Order)

นิยม 5 ยาก 2 ประโยชน์ 5

5 2 5
Table.Buffer Table functions = Table.Buffer(table as table, optional options as nullable record) as table

Table.Buffer บังคับโหลดตารางลงหน่วยความจำและแยกออกจากแหล่งข้อมูลต้นทาง ช่วยป้องกันการ fold และควบคุมเวลาประมวลผล

นิยม 5 ยาก 4 ประโยชน์ 6

5 4 6
Table.Last Table functions Table.Last(table as table, optional default as any) as any

Table.Last ใช้ดึงแถวสุดท้ายของตารางออกมาเป็น Record หรือคืนค่าเริ่มต้นถ้าตารางว่างเปล่า

นิยม 5 ยาก 4 ประโยชน์ 6

5 4 6