Table.RemoveRowsWithErrors

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]
} )
 */ 

Other functions related to Table.RemoveRowsWithErrors are:

BI Gorilla Blog

Last update: August 28, 2023 | Contribute » | Contributors: Rick de Groot
Microsoft documentation: https://learn.microsoft.com/en-us/powerquery-m/table-removerowswitherrors
© 2023 BI Gorilla. All rights reserved. Content derived from Microsoft documentation is property of Microsoft Corp.