DROP TABLE Temp; RENAME FIELD Cust TO Customer;

DROP and RENAME (tables and fields) in Power BI

Dropping a temporary table in Qlik maps to a staging query with Enable load unchecked. It feeds other queries but doesn't reach the model. DROP FIELD maps to Table.RemoveColumns, and RENAME FIELD to Table.RenameColumns. Qlik's "RENAME FIELDS USING map" maps to Table.RenameColumns with a list built from a mapping table.

Direct equivalent Power Query

Short answer: For staging tables, right-click the query and untick Enable load. For columns, use Remove Columns and Rename Columns. For bulk renames from a mapping table, use Table.RenameColumns(T, Table.ToRows(Map), MissingField.Ignore).

What it does in Qlik

  • DROP TABLE t; and DROP FIELD f [FROM t]; remove things from the in-memory model.
  • RENAME TABLE a TO b; and RENAME FIELD a TO b; rename them.
  • RENAME FIELDS USING MapName; renames in bulk from a mapping table.

Qlik example

Qlik script
Map_Names: MAPPING LOAD OldName, NewName FROM [lib://Data/field_names.xlsx] (ooxml, embedded labels);
RENAME FIELDS USING Map_Names;
DROP FIELD TmpKey;
DROP TABLE Staging;

Power BI equivalent

Power Query

Power Query M
= Table.RemoveColumns(Sales, {"TmpKey"}, MissingField.Ignore)
= Table.RenameColumns(Sales, {{"Cust", "Customer"}})
// bulk rename from a two-column mapping query (OldName, NewName)
= Table.RenameColumns(Sales, Table.ToRows(Map_Names), MissingField.Ignore)

Staging tables

Keep staging logic in its own query and untick Enable load. Other queries can reference it, and it doesn't appear in the model. This is the equivalent of a table you load and later DROP.

Gotchas and behaviour differences

  • A query that's referenced by several others can be evaluated more than once during refresh. That's unlike a Qlik resident table, which exists once in memory. For heavy staging, look at Dataflows or STORE patterns.
  • Rename columns before you build measures and visuals. Renaming in the model (the Data pane) updates the measures that reference the column, but renaming later in Power Query can leave visuals and measures pointing at a field that no longer exists. Check after any late rename.

Official documentation

Related pages

Spotted an error or a better pattern? QlikToDax is maintained by a working BI consultant; corrections are welcome via the About page. Last reviewed 2026-10-25.