Table.SelectRowsWithErrors
語法
Table.SelectRowsWithErrors(table as table, optional columns as nullable list) as table
關於
傳回資料表,其中只包含輸入資料表中在至少一個儲存格內包含錯誤的資料列。 若有指定資料行清單,則只會針對指定資料行中的儲存格檢查錯誤。
範例 1
選取資料列中有錯誤的客戶名稱。
使用方式
Table.SelectRowsWithErrors(
Table.FromRecords({
[CustomerID = ..., Name = "Bob", Phone = "123-4567"],
[CustomerID = 2, Name = "Jim", Phone = "987-6543"],
[CustomerID = 3, Name = "Paul", Phone = "543-7890"],
[CustomerID = 4, Name = "Ringo", Phone = "232-1550"]
})
)[Name]
輸出
{"Bob"}