Skip to content

Table.RemoveBlankColumns

Rodrigo Celso de Lima Porto edited this page Jan 13, 2026 · 1 revision

Removes columns from a table that contain only blank values.

Syntax

Table.RemoveBlankColumns(
    tbl as table
) as table

Parameters

  • tbl: The table from which blank columns will be removed.

Example

Transposing the table and changing the first column name

let
    Source = #table(
        {"A", "B"}, {
        {null, "value1"},
        {"", "value2"}
    }),
    Result = Table.RemoveBlankColumns(Source)
in
    Result

Result

B
value1
value2

Credits

Clone this wiki locally