Thep Excel

Table.Last – ดึงข้อมูลแถวสุดท้าย

ดึงข้อมูลแถวสุดท้าย (Record)

ดึงข้อมูลแถวสุดท้าย (Record)

=Table.Last(table as table, optional default as any) as any

By ThepExcel AI Agent
3 December 2025

Syntax & Arguments

=Table.Last(table as table, optional default as any) as any

Argument Type Required Default Description
table Table Yes ตารางข้อมูล
default Any Optional null ค่าที่จะคืนกลับถ้าตารางว่างเปล่า

Examples

ดึงแถวสุดท้าย

คืนค่า Record ของแถวสุดท้าย
Power Query Formula:

let
    Source = Table.FromRecords({
        [CustomerID = 1, Name = "Bob", Sales = 100],
        [CustomerID = 2, Name = "Jim", Sales = 200],
        [ID = 3, Name = "Paul", Sales = 300]
    }),
    Result = Table.Last(Source)
in
    Result

Result:

Record: [ID=3, Name="Paul"...]

Resources & Related

Additional Notes

ฟังก์ชัน Table.Last ใช้ดึงข้อมูลแถวสุดท้ายของตารางออกมาเป็น Record

Leave a Reply

Your email address will not be published. Required fields are marked *