Dynamically expand table column in Power Query

  Рет қаралды 16,650

Exceed Learning

Exceed Learning

3 жыл бұрын

In this video, we show how to use list objects to dynamically expand table column in Power Query after merge. With the knowledge of Power Query objects such as lists, you can achieve more flexible solutions than just by relying on M code written automatically by the PQ engine.
You can find the written article that shows a more advanced technique at the following link: exceed.hr/blog/dynamically-ex...
To learn more about Power Query, check out our Power Query fundamentals course!
exceed.hr/en/academy/powerque...
#powerquery #powerbi #etltools #data #dataanalysis

Пікірлер: 25
@jeremy_317
@jeremy_317 2 ай бұрын
Thank you! Just what I needed to make sure newly-processed data merge correctly with prior date ranges (always expanding with new data)
@GlastoX
@GlastoX 11 ай бұрын
Dude, I was looking for something like this now in 2023, I asked chatGPT and it made me waste 3 hours with wrong codes, this explanation fixed everything in just 15 min. Thanks!
@vacilando86
@vacilando86 2 жыл бұрын
You really saved my life with that training video. Thank you so much my friend.
@ExceedLearning
@ExceedLearning 2 жыл бұрын
Glad it helped! :)
@EricRamos42
@EricRamos42 Жыл бұрын
Great walkthrough and explanation!
@argokusumandani9773
@argokusumandani9773 3 жыл бұрын
Thank you Sir. I hope can learn a lot of power query from you👍
@BaronVonReich
@BaronVonReich Жыл бұрын
Thankyou very much, you are very patient in the way you explain and is easy to understand by all levels of expereince
@zax8704
@zax8704 Жыл бұрын
You saved the day, thank you!
@zzzzzzzzzzzzzzzz9
@zzzzzzzzzzzzzzzz9 3 жыл бұрын
Thanks I'm new here
@cobusolivier2682
@cobusolivier2682 2 жыл бұрын
Thanks for this explanation. I have created a function that will do this step: (Source as table, fieldName as text) => let /* Source = #"Input (GroupBy)", fieldName = "myTable", //*/ #"Expanded myTable" = Table.ExpandTableColumn(Source, fieldName, List.Skip( Table.ColumnNames(Table.Column(Source, fieldName){0}), 1), List.Skip( Table.ColumnNames(Table.Column(Source, fieldName){0}), 1)) in #"Expanded myTable"
@YvesAustin
@YvesAustin Жыл бұрын
Very good video and great tip!
@ExcelUpNorth
@ExcelUpNorth 6 ай бұрын
Awesome solution! This is exactly the answer I was looking for. Thanks! 😁
@spilledgraphics
@spilledgraphics 2 жыл бұрын
Excellente video mate! well done, well explained. The intro was very inviting to watch the rest of the tutorial! 👌👌👌
@ExceedLearning
@ExceedLearning 2 жыл бұрын
Thanks! Glad you enjoyed it 😊
@jessontvarghese327
@jessontvarghese327 3 жыл бұрын
This is very much clear and nicely explained. Thank you so much for this video. Much appreciated. Also would like to mention that, audio volume is bit low, and the video focusing is also have some problem. Unable to see the text on the screen as it appears like lack of focus.
@ExceedLearning
@ExceedLearning 3 жыл бұрын
Thank you Jesson! We strive to make every subsequential video better, so thank you for your feedback
@brunof.s.8186
@brunof.s.8186 2 жыл бұрын
Super useful! I was wondering how can I apply this not to a single table, but a table full of tables? Like: [Content] [Table] [Table] [Table] (…) Probably it should use Table.TransformColumns along with Table.ColumnNames, but i cant figure it out.
@DinoAMAntunes
@DinoAMAntunes 3 жыл бұрын
Hi, Very good. Please i am Trying to find an example for Cartesian Product in Power Query. Multiple tables with multiple column in the same workbook, with some equal transformation and some diferents. Any example please. Tks in advance
@ExceedLearning
@ExceedLearning 3 жыл бұрын
Hi, Unfortunately, we do not have the example for Cartesian Product. You might find this article helpful: radacad.com/cartesian-product-in-power-query-multiply-all-sets-of-all-pairs-in-power-bi
@DinoAMAntunes
@DinoAMAntunes 3 жыл бұрын
@@ExceedLearning Yes thank you very much, but is to simple for my especific case.
@ahmadch70
@ahmadch70 Жыл бұрын
Hi, I am trying to watch the video but the data and formulas are blurred.
@MSBI_expert_
@MSBI_expert_ 10 ай бұрын
Hello Sir, Please help me on my query. I have changed column header based on list it is working but not working in power bi dashboard. When i update source list then header has been changed in table but visual throwing error like" This can not be used it is invalid column". How can i fix it. Please reply me. Thanks
@malchicken
@malchicken 3 жыл бұрын
Much appreciated, thank you! I thought there was an interesting alternative solution presented by kzfaq.info/get/bejne/nr9mg5h-yanRqp8.html recently. But your code extracts the column names from the start and avoids combining whole tables, so it seems like it would be better for performance. I like how your removed potential repeat headers in this videos solution as well with List.Skip. I think thats missing in the blog and the 'increased complexity' solution could use something similar to check for 'columns already present to remove or not expand out'. Also related: kzfaq.info/get/bejne/muCKrK-SqL6Ypp8.html I enjoyed this videos description of how to use List.Zip to easily create a list of lists for the old column names to the new columns names in the Table.ExpandTableColumn argument.
@spilledgraphics
@spilledgraphics 2 жыл бұрын
@Hendrick McDonald, thanks for ALL the links and your comments.
@jerrydellasala7643
@jerrydellasala7643 Жыл бұрын
I just found your channel. You're producing great videos on PQ, and know what you're doing! That said, I always find videos easier to follow when the data used in the video is available - at least the final product if not both the starting point (like without queries) and end product. I just started to follow you on LinkedIn. Feel free to contact me if you have any questions.
Dynamically expand table column in Power Query (advanced)
9:51
Exceed Learning
Рет қаралды 10 М.
The child was abused by the clown#Short #Officer Rabbit #angel
00:55
兔子警官
Рет қаралды 24 МЛН
Khó thế mà cũng làm được || How did the police do that? #shorts
01:00
Heartwarming: Stranger Saves Puppy from Hot Car #shorts
00:22
Fabiosa Best Lifehacks
Рет қаралды 20 МЛН
Жайдарман | Туған күн 2024 | Алматы
2:22:55
Jaidarman OFFICIAL / JCI
Рет қаралды 1,7 МЛН
Nested functions and Table.Buffer()
19:54
Exceed Learning
Рет қаралды 18 М.
Using M to dynamically change column names in Power Query
18:46
Exceed Learning
Рет қаралды 13 М.
Unstack a Million Uneven Rows to Columns in Power Query
10:50
How to Rename Column Headings with Power Query - the quick automated way
11:31
Create Index Column By Group in Power Query
10:26
BI Gorilla
Рет қаралды 45 М.
The child was abused by the clown#Short #Officer Rabbit #angel
00:55
兔子警官
Рет қаралды 24 МЛН