Power Query M code
let
Source = YourTable,
RemovedOtherColumns = Table.SelectColumns(Source, {"OrderID", "OrderDate", "Amount"})
in
RemovedOtherColumns
Drops columns you don't need as the very first step, so later transformations run on a smaller table.
let
Source = YourTable,
RemovedOtherColumns = Table.SelectColumns(Source, {"OrderID", "OrderDate", "Amount"})
in
RemovedOtherColumns
List only the columns you actually need for the rest of the query.
Browse all 145 snippets in the Power Query M Code Snippets, or search the library for something similar to Remove Unused Columns Early.