Power Query M code
let
Source = YourTable,
OnlyErrors = Table.SelectRows(Source, each (try [ColumnName])[HasError] = true)
in
OnlyErrors
Keeps only the rows where a given column contains an error, to inspect and fix bad source data.
let
Source = YourTable,
OnlyErrors = Table.SelectRows(Source, each (try [ColumnName])[HasError] = true)
in
OnlyErrors
Combine with Table.AddColumn to add an ErrorReason column using (try [ColumnName])[Error][Message] for more detail.
Browse all 145 snippets in the Power Query M Code Snippets, or search the library for something similar to Keep Only Error Rows (for debugging).