Table.First
Table.First(table as table, optional default as any) as any
Mengembalikan baris pertama dari table
atau nilai default opsional, default
, jika tabel kosong.
Temukan baris pertama tabel.
Penggunaan
Table.First(
Table.FromRecords({
[CustomerID = 1, Name = "Bob", Phone = "123-4567"],
[CustomerID = 2, Name = "Jim", Phone = "987-6543"],
[CustomerID = 3, Name = "Paul", Phone = "543-7890"]
})
)
Output
[CustomerID = 1, Name = "Bob", Phone = "123-4567"]
Temukan baris pertama tabel ({})
atau kembalikan [a = 0, b = 0] jika kosong.
Penggunaan
Table.First(Table.FromRecords({}), [a = 0, b = 0])
Output
[a = 0, b = 0]