Table.RemoveColumns

 

This topic applies to the Power Query Formula Language which can be used with Power Query and Power BI Desktop to build queries that mashup data. See the list of function categories.

Returns a table without a specific column or columns.

Table.RemoveColumns(table as table, columns as any, optional missingField as nullable number) as table  

ArgumentDescription
tableThe Table to modify.
columnsA text value or a list of text values with the names of the columns to remove. missingField is a number value provided to specify handling for missing fields.
optional missingFieldThe default value of missingField is MissingField.Error. For more information, see Parameter Values.
  • Table.RemoveColumns is similar to Record.RemoveFields applied to every row in a table.
Table.RemoveColumns(Table.FromRecords({[CustomerID=1, Name="Bob", Phone = "123-4567"]}), "Phone")  

CustomerIDName
1Bob
Show: