Table.RemoveRowsWithErrors is a Power Query M function that removes rows containing errors in a table, optionally limited to specified columns. The function returns a new table with the error-containing rows removed.
Compatible with: Power BI Service Power BI Desktop Excel Microsoft 365
Syntax
Table.RemoveRowsWithErrors(
table as table,
optional columns as nullable list,
) as table
Description
Returns a table with the rows removed from the input table that contain an error in at least one of the cells. If a columns list is specified, then only the cells in the specified columns are inspected for errors.
Examples
Remove error value from first row.
Table.RemoveRowsWithErrors(
Table.FromRecords( {
[Column1 = ...],
[Column1 = 2],
[Column1 = 3]
} )
)
/* Output:
Table.FromRecords( {
[Column1 = 2],
[Column1 = 3]
} )
*/
Related functions
Other functions related to Table.RemoveRowsWithErrors are:
