Power Query Convert Columns to Rows for groups and expand columns dynamically in 2 ways

preview_player
Показать описание
🔽More Information below🔽

This Power Query challenge uses GroupBy, List functions and a little hack

There's also a trap with expanding the columns if the number of columns may change. I show 2 ways of doing that.

Thanks to everyone for taking part. You can download the challenge file if you want to try this out, and also my solution (and everyone elses) is available here too

I love reading your comments and questions so feel free to post those

Thanks to these folks for taking part, solutions are saved in the same folder as per the link above
Alexander Sorokopyt
Andrew Shepley
Bohdan Duda
Chandeep Chhabra
Christopher Hazel
Daniil Maslyuk
Daryl Lynch
Diana Maria Iordachescu
Dyota
Glyn Willis
Guido
Henriette
Ivan Dumalovski Janjušić
Jan Berny
Kolyu
Leon Dijkers (winner of the first person to submit a solution award 😀 )
Nick Bonner
Nizam
Peter Tholstrup
Philip Treacy
Quadri Atharu
Sham F
Steve Bateman

Cheers

Wyn
Рекомендации по теме
Комментарии
Автор

Thanks for replying to my solution email - and loved seeing similar elements in your solution! A few things I learned from your solution:
1) Adding an index to "fix" the sort rather than Table.Buffer - I'm with you on this, PQ can forget the sort.
2) Extracting a list from the grouped tables in the Data column - nice technique
3) Using nQual as a parameter to Text.SplitByDelimiter

I'm loving these challenges - keep them coming!

Mister_Bates
Автор

i was just looking for that solution for over a week!!!! thanks!!! great tutorial

ccentermanager
Автор

Thank you Wyn 😊
Learning so much from you, as always!
The second approach is my favorite one 🤯

malejandrahorvath
Автор

As always I learn something new from you videos, and I thank you!

rick_.
Автор

Second approach is super cool. I knew about the first one having used it on lot of occasions but the second one is amazing. Thanks for sharing his. 👍👍👍👍

khawarmalik
Автор

Nice! I was on the right path (grouping) and lost track of time. Having said that, I learn by doing - I am going to do both steps tonight! Thanks for sharing!

tomr
Автор

Awesome Wyn! Great demo. Thanks for the two examples. Learned a lot! Thumbs up!!

wayneedmondson
Автор

This is such a massive time saver! I am now interested in the M code!!! Thank you and keep up the good job.

handlegich
Автор

Thank you!! Congrats for the 10K, and for the new logo. That's an excellent channel!

IvanCortinas_ES
Автор

This helped a lot. Saved my time! Thanks.

shahidabano
Автор

Great video. I liked your second approach using the nQuail name and replace the list hardecoded by the M code.

jazzista
Автор

Great trick! It is amazing and interesting to follow you along!

mirrrvelll
Автор

BRILLIANT STUFF!!! Just what I needed...

davidb
Автор

Thank you Wyan. I learned a lot from your Vedios. 2nd method is more attractive and my favourite. Thank you sharing your valuable knowledge.

sedarathnadcd
Автор

Another gem of a video thank you Wyn. If you had just shown the first and left it there that would have been good enough but the 2nd approach, voila!

johnhackwood
Автор

Just found your challenges. A lot of fun. You can turn off the automatic changed type steps. Data>Get Data> Query Options>Data Load>Type Detection. You can do it for all workbooks (Global) or individual workbooks as needed.

matthewwykle
Автор

Thanks for the challenge, it was fun and educational, as Power BI should be 🙂

ivandumalovskijanjusic
Автор

Thanks so much, that was just what I was looking for!

mirziyodm
Автор

PQ forgot the sort order in my solution to this challenge. I had to sort again at a later step. Definitely still a thing. Thanks for the solution, Wyn

GrainneDuggan_Excel
Автор

Wow, very nice tricks. Thank you very much for sharing.

Bhavik_Khatri