Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hello,
Is there a way to bull change column names in table1
I have a Excel file with old->new names key.
It can be loaded as NewName column in table2
Is there way to do it?
Something like
transformcolumnnames. Text.replace
for many columns at once.
Solved! Go to Solution.
Hi @MasterSonic
You may get a better answer than this in the Power Query forum, but here's something I've used to do this:
Table.TransformColumnNames(#"Previous Step", each if List.PositionOf(column_name_table[OldName], _) = -1 then _ else column_name_table[NewName]{List.PositionOf(column_name_table[OldName], _)} )
Hi @MasterSonic
You may get a better answer than this in the Power Query forum, but here's something I've used to do this:
Table.TransformColumnNames(#"Previous Step", each if List.PositionOf(column_name_table[OldName], _) = -1 then _ else column_name_table[NewName]{List.PositionOf(column_name_table[OldName], _)} )
works like a charm
User | Count |
---|---|
15 | |
9 | |
8 | |
6 | |
5 |
User | Count |
---|---|
28 | |
18 | |
15 | |
7 | |
6 |