The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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 | |
13 | |
8 | |
6 | |
6 |
User | Count |
---|---|
27 | |
19 | |
12 | |
9 | |
5 |