Rename columns in Power Query when names change | Excel Off The Grid

Rename columns in Power Query when names change | Excel Off The Grid

Excel Off The Grid

2 года назад

17,803 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Vasily Belkin
Vasily Belkin - 08.11.2023 13:18

Hi Mark, file download don`t work.

Ответить
Ibrahim Sh
Ibrahim Sh - 18.09.2023 00:21

Hello, Thanks. I did the same but i get error!! Expression.SyntaxError: Token ',' expected.

= Table.RenameColumns(#"Promoted Headers",{{Table.ColumnNames(#"Promoted Headers"){6}, "maand 1"}, {Table.ColumnNames(#"Promoted Headers"){7}, "maand 2"}, {{Table.ColumnNames(#"Promoted Headers"){8}, "maand 3"}, {{Table.ColumnNames(#"Promoted Headers"){9}, "maand 4"}})

Ответить
Lex H
Lex H - 10.08.2023 19:25

very useful

Ответить
David A. Taylor
David A. Taylor - 01.08.2023 23:44

Wow, very cool trick that came in super-useful today. I was cursing some report writers who broke my workbook because they decided to change the column header names on a report that I've been using for 3-4 years. Thanks for this tip!

Ответить
Ryan Pope, CPA
Ryan Pope, CPA - 06.04.2023 19:19

Excellent solution!! This is extremely useful. Thanks.

Ответить
micael area
micael area - 22.11.2022 23:40

Awesome trick . Exactly what I was looking for . I like the later one . Thank you so much .

Ответить
Excel Employee Leave Tracker
Excel Employee Leave Tracker - 21.11.2022 16:52

Wow...thank you for this. Both approaches are excellent.! Keeping this in my saved list.

Ответить
FRANKWHITE1996
FRANKWHITE1996 - 25.10.2022 20:05

Thanks for sharing ❤

Ответить
Elena Zhu
Elena Zhu - 14.10.2022 23:52

I've been struggling with a similar case for a while. This just saved me! Thanks!

Ответить
Peter G
Peter G - 13.09.2022 23:48

Can I do this with column selection? I have 15 columns, but only need to keep the first 6 and they will change their names quarterly. I tried using your M Query method but got an error saying that "value of type List can't be changed to type Function".

Ответить
Kenneth Stephani
Kenneth Stephani - 15.08.2022 14:23

Great video!

Ответить
Sumanth Sasidharan
Sumanth Sasidharan - 08.07.2022 15:46

This is brilliant 👍🙂 Love your content on power query. Please make more videos 😉

Ответить
Eng AHMED Elbendary
Eng AHMED Elbendary - 28.02.2022 15:32

thx alot of these good Solutions and i want to explane how to skip dynamicaly empty columns or rows

Ответить
Zaigham uddin Farooqui
Zaigham uddin Farooqui - 02.02.2022 17:34

Thanks for an amazing video. 💕💕💕💕

Ответить
Francesco Galassi
Francesco Galassi - 02.02.2022 10:43

Another simpler solution could be to change type before, when the column are still standard named, just after the clear first 3 rows step, than after the change type step, you can promote the header without any further step .

Ответить
Wayne Edmondson
Wayne Edmondson - 01.02.2022 10:04

Hi Mark. Awesome solutions! I've been looking for a way to do this. Love the direct edit of M code using Table.ColumnNames() with positional index operator. Brilliant stuff! Thanks for sharing these great techniques :)) Thumbs up!!

Ответить
Kebin Cui
Kebin Cui - 20.01.2022 18:45

👍👍🌹🌹🌹🌹

Ответить
Oakley Turvey
Oakley Turvey - 13.01.2022 19:47

Love all three methods.
Another way: If the structure is the same, with detect data types off, you can manually do actions which will reference 'Column1', 'Column2', etc and then promote headers afterwards, and this will keep the original names of the headers each period as you progress. This may be useful if you are 'pdf'ing the spreadsheets each week to keep an archive.

Ответить