Тёмный

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

Excel Off The Grid
Подписаться 31 тыс.
Просмотров 19 тыс.
50% 1

Опубликовано:

 

16 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 47   
@OakleyTurvey
@OakleyTurvey 2 года назад
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.
@ExcelOffTheGrid
@ExcelOffTheGrid 2 года назад
Of course!!! Why didn't I think of that. Great tip 😊
@OakleyTurvey
@OakleyTurvey 2 года назад
@@ExcelOffTheGrid 😊 I always look for the simplest solution...it helps me understand it 😊😊
@CeliaAlvesSolveExcel
@CeliaAlvesSolveExcel 2 года назад
Nice one, Oakley!
@ExcelOffTheGrid
@ExcelOffTheGrid 2 года назад
That's why I love the Excel community. Celia's method had my mind blown with amazing formula techniques. List.Zip has got to be a useful function for tackling about problems in a new way. Then you've blown my mind with such a simple switch around. So much to learn 😊
@GrainneDuggan_Excel
@GrainneDuggan_Excel 2 года назад
@@ExcelOffTheGrid Celia's Method is great when the number of columns or their order in the raw data changes. Using her List solutions makes it 'future proof'. Mark and Oakley's solutions are so much easier if you can guarantee the column placement in the raw data. I love seeing so many solutions to 1 problem - I have learned from all three of you today - Thanks!!
@CeliaAlvesSolveExcel
@CeliaAlvesSolveExcel 2 года назад
Wonderful, Mark! I love playing with M code and discovering M functions, but Power Query is all about allowing the user to automate without coding. So, these approaches are simpler to apply for most people. One of the viewers commented on my video mentioning a solution similar to your method #1. Other people reached out mentioning List.LastN(list,3) instead of List.Select in my method. I love all the possibilities. Some are more flexible than others to apply to scenarios where the intended columns are in different number and/or position. Thank you for the shout-out! :)
@ExcelOffTheGrid
@ExcelOffTheGrid 2 года назад
I was buzzing after watching your video, a whole world of possibility that I had previously ignored - I need to spend some more time playing with List functions 😀
@CeliaAlvesSolveExcel
@CeliaAlvesSolveExcel 2 года назад
@@ExcelOffTheGrid don't we all do? 😁
@henrygultom3411
@henrygultom3411 6 месяцев назад
Thank you!!!! You make my daily job easier.
@ExcelOffTheGrid
@ExcelOffTheGrid 6 месяцев назад
Glad to hear that! 😁
@davida.taylor8444
@davida.taylor8444 Год назад
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!
@ExcelOffTheGrid
@ExcelOffTheGrid Год назад
That must have been very frustrating. I’m glad I could help.
@elenazhu2794
@elenazhu2794 Год назад
I've been struggling with a similar case for a while. This just saved me! Thanks!
@ExcelOffTheGrid
@ExcelOffTheGrid Год назад
I’m glad I could help 😀
@decentmendreams
@decentmendreams Год назад
Awesome trick . Exactly what I was looking for . I like the later one . Thank you so much .
@ExcelOffTheGrid
@ExcelOffTheGrid Год назад
Glad you liked it.
@excelemployeeleavetracker1274
Wow...thank you for this. Both approaches are excellent.! Keeping this in my saved list.
@ExcelOffTheGrid
@ExcelOffTheGrid Год назад
Great news! Glad I could help.
@rpopecpa
@rpopecpa Год назад
Excellent solution!! This is extremely useful. Thanks.
@enricomendiola9952
@enricomendiola9952 8 месяцев назад
Great video! I tried using the solution no 1 with the modulo method. When i pivot it back the values from the prevweek was transferred to the currWeek.
@Sumanth1601
@Sumanth1601 2 года назад
This is brilliant 👍🙂 Love your content on power query. Please make more videos 😉
@ExcelOffTheGrid
@ExcelOffTheGrid 2 года назад
Thank you! Will do!
@kennethstephani692
@kennethstephani692 2 года назад
Great video!
@lexh7714
@lexh7714 Год назад
very useful
@ExcelOffTheGrid
@ExcelOffTheGrid Год назад
Thanks 😊
@FRANKWHITE1996
@FRANKWHITE1996 Год назад
Thanks for sharing ❤
@ExcelOffTheGrid
@ExcelOffTheGrid Год назад
My pleasure. Thanks Frank.
@engahmedelbendary1566
@engahmedelbendary1566 2 года назад
thx alot of these good Solutions and i want to explane how to skip dynamicaly empty columns or rows
@ExcelOffTheGrid
@ExcelOffTheGrid 2 года назад
To remove empty rows: - Filter the column remove the null values To remove empty colums: - Unpivot other the columns (this creates an Attributes column and removes null values automatically) - Pivot the columns based on the Attributes Column
@zaighamuddinfarooqui1705
@zaighamuddinfarooqui1705 2 года назад
Thanks for an amazing video. 💕💕💕💕
@ExcelOffTheGrid
@ExcelOffTheGrid 2 года назад
No problem, you’re welcome.
@wayneedmondson1065
@wayneedmondson1065 2 года назад
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!!
@ExcelOffTheGrid
@ExcelOffTheGrid 2 года назад
I’ve now worked through some even easier solutions. Maybe I need to do another video at some point.
@planxlsm
@planxlsm Год назад
4:00 Advanced Editor
@peterg4130
@peterg4130 2 года назад
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".
@Franceskineos
@Franceskineos 2 года назад
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 .
@ExcelOffTheGrid
@ExcelOffTheGrid 2 года назад
Yes - I agree. Thanks for letting me know. Another option I’ve found is: - Unpivot other columns - Change Type - Pivot (This also retains the original headings)
@robinjansen4
@robinjansen4 7 месяцев назад
Why not rename column1, column2, column3 etc. manualy, instead of using the first row as headers? That sounds the most simple and robust solution and makes the query completely independent of header names in the file itself.
@vasilybelkin786
@vasilybelkin786 10 месяцев назад
Hi Mark, file download don`t work.
@kebincui
@kebincui 2 года назад
👍👍🌹🌹🌹🌹
@ExcelOffTheGrid
@ExcelOffTheGrid 2 года назад
😀 Thanks
@ibrahimsh8044
@ibrahimsh8044 Год назад
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"}})
@ExcelOffTheGrid
@ExcelOffTheGrid Год назад
That error means you’re missing a comma. Maybe at the end of the statement.
Далее
Transform Column Names in Bulk in Power Query
19:23
Просмотров 35 тыс.
Тарковский - гений
00:48
Просмотров 701 тыс.
Power Query - Dynamically Set Query Header Titles
8:52
Convert Multiple Column Groups to Rows in Power Query
17:18
Power Query - Rename Column by Position
7:31
Просмотров 4,2 тыс.
Тарковский - гений
00:48
Просмотров 701 тыс.