top of page

Power Query: Rename Columns from a Mapping Table (Inline step)

Updated: Apr 26

Function: Would you like to rename multiple columns in a single operation? This custom step allows you to rename as many columns as needed. You need one mapping table (let's call it "RenameTbl") with columns: OldName and NewName, and then reference it simply with a Custom Column step. Yellow markings indicate the difference between Old and New Columns after the custom step.


Data transformation interface in Power BI showing custom columns added. Tables display chemical categories. Green and yellow highlights.
Custom Column in applied steps

Power Query code that you will use in the Custom Column.

(Use let and in Inside Steps)

Code snippet showing a script to rename table columns in a programming environment, with comments for clarification.
Custom column step



Need a code snippet? Free of charge =)




Comentários


© 2025 Excelized. All rights reserved.

bottom of page