Split by Variable Columns in Power Query

  Рет қаралды 30,469

Goodly

Goodly

Күн бұрын

Пікірлер: 149
@GoodlyChandeep
@GoodlyChandeep Жыл бұрын
Check out our newly launched M Language course ↗ - goodly.co.in/learn-m-powerquery/
@GeorgeKlucsarits
@GeorgeKlucsarits Жыл бұрын
Came across your video trying to solve this exact problem today. I needed to separate a list in a cell to separate columns prior to unpivoting. Your explanation was terrific and probably the most straightforward solution I've come across. Thanks!
@sharadpunita
@sharadpunita Ай бұрын
I don't know why I keep watching your videos (atleast 3 a day) without any use !!!
@ajinkyashinde1778
@ajinkyashinde1778 Жыл бұрын
Amazing....The only guy on KZbin who can teach power query transformation like bread & butter... Kudus Chandeep for this awesome playlist. ❤❤
@GoodlyChandeep
@GoodlyChandeep Жыл бұрын
Thanks a ton 😉
@wayneedmondson1065
@wayneedmondson1065 2 жыл бұрын
Awesome Chandeep! Very clever.. as always. Thanks for walking through the steps.. well explained and easy to follow. Thumbs up!!
@GoodlyChandeep
@GoodlyChandeep 2 жыл бұрын
Glad you like it 😊
@teaking1981
@teaking1981 2 жыл бұрын
Really enjoyed the video, and found the use of the functions a great learning experience. For this example I think the list of names can be replaced with the number of columns, so you could have used the max number straight in the argument, although the video was more informative using the other way = let _max = List.Max(Table.AddColumn(Source,"Custom",each List.Count(Text.PositionOfAny([Hobbies],{","},Occurrence.All)))[Custom])+1 in Table.SplitColumn(Source, "Hobbies",Splitter.SplitTextByDelimiter(",", QuoteStyle.Csv),_max)
@adityadeshmukh3150
@adityadeshmukh3150 2 жыл бұрын
This technique blows my mind. I think M query can makes our work faster.. Thanks for sharing this knowledge. 👍
@jaymehta3320
@jaymehta3320 2 жыл бұрын
Really amazing. Dynamic columns, even outside split, remains a very challenging area - like pivoting and unpivoting a dynamic list of columns. This video definitely helps.
@CJamesEnglish
@CJamesEnglish Жыл бұрын
Great presentation - excellent walkthrough of the critical thinking and problem-solving technique. I wonder if there's a way to do it in DAX, as well... Also... I, too, enjoy Hulking. Excellent choice, Rehet.
@RonDavidowicz
@RonDavidowicz 2 жыл бұрын
Great video, I'm sure these techniques can be used for many other problems.
@GoodlyChandeep
@GoodlyChandeep 2 жыл бұрын
Glad it was helful 😊
@jimmyni1983
@jimmyni1983 2 жыл бұрын
The BEST TEATCHER EVER about Power Query (M) language. Loving all videos about it. Thank you a lot for your great and amazing commitment to help world community. I wish all the best to you and your family!
@GoodlyChandeep
@GoodlyChandeep 2 жыл бұрын
Glad you are loving the videos 😊
@pabeader1941
@pabeader1941 2 жыл бұрын
Great idea. I love the way you conserve steps and combine so much into each one. I do see an issue that will come up with steps beyond these dynamic columns. But I suppose that can be handled as the cases arise.
@qiancasper
@qiancasper 2 жыл бұрын
Thanks for demonstrating the procedure of solving the problem really amazing
@shirleymoreman6725
@shirleymoreman6725 11 ай бұрын
Fabulous! Thanks for the clear explanation.
@yumyumhotsauce1
@yumyumhotsauce1 2 жыл бұрын
wow, this just came just at the right time. I have a use case where I have to do a report on dynamic product category/products. Just subscribed. thanks!
@AndrewWright26
@AndrewWright26 Жыл бұрын
Thank you so much. You explain the concept so well. I'm going to apply this to a problem I have. Thanks again!
@GoodlyChandeep
@GoodlyChandeep Жыл бұрын
Glad you like it
@eduardokeane
@eduardokeane 11 ай бұрын
Excelente, me ayudó el tutorial para aplicarlo en un reporte, saludos desde Perú.
@franciscom.paredesarias2356
@franciscom.paredesarias2356 2 жыл бұрын
Extraordinary result, thank you very much for sharing this type of solutions, personally it has helped me a lot. Greetings from Chile
@GoodlyChandeep
@GoodlyChandeep 2 жыл бұрын
Glad it was helpful 💚
@Chris_in_fremantle
@Chris_in_fremantle 2 жыл бұрын
As always, very clever. Mind blown regarding not having to to refer to the immediately proceeding applied step. Well done.
@GoodlyChandeep
@GoodlyChandeep 2 жыл бұрын
Glad you like it 😊
@JoseMariaGomezMartinez
@JoseMariaGomezMartinez 2 жыл бұрын
Glorious! Mastering as always Chandeep, many thanks for sharing!
@GoodlyChandeep
@GoodlyChandeep 2 жыл бұрын
Glad you like it Jose! 😊
@suki9860
@suki9860 2 жыл бұрын
Always cutting-edge, Chandeep. Thanks!
@GoodlyChandeep
@GoodlyChandeep 2 жыл бұрын
Glad you like it 😊
@nonoobott8602
@nonoobott8602 2 жыл бұрын
Great solution as always. I've learned so much on your channel. Thanks for sharing
@leebecker8255
@leebecker8255 2 жыл бұрын
Brilliant!! This is exactly what I was looking for about a year ago, but I couldn't quite work out how to do it. I can't wait to implement this. I really like the way you explained all the step. THANK YOU!!! I have just subscribed :)
@GoodlyChandeep
@GoodlyChandeep 2 жыл бұрын
Fantastic!
@AlesKus
@AlesKus Жыл бұрын
You are... just unbelivable 🙂 Thank you!
@GoodlyChandeep
@GoodlyChandeep Жыл бұрын
Thanks Ales!
@Clau.08
@Clau.08 7 ай бұрын
mind blown. great tutorial and great explanation!!!!!
@VS.R3LeVant
@VS.R3LeVant 2 жыл бұрын
You are a wizard with this. Thanks for sharing!!!
@GoodlyChandeep
@GoodlyChandeep 2 жыл бұрын
Glad you like it 😊
@Jujubeterraba
@Jujubeterraba 2 жыл бұрын
Thank you, this video has saved my day!
@GoodlyChandeep
@GoodlyChandeep 2 жыл бұрын
Glad it was helpful 💚
@shoaibrehman9988
@shoaibrehman9988 2 жыл бұрын
Excellent way to deal with this types of queries. Thanks
@GoodlyChandeep
@GoodlyChandeep 2 жыл бұрын
Glad you like it 😊
@ErickNishimoto
@ErickNishimoto 2 жыл бұрын
Thx from Brazil! 💚💛
@GoodlyChandeep
@GoodlyChandeep 2 жыл бұрын
Welcome!
@raimundojs9547
@raimundojs9547 Жыл бұрын
Fantastic! Beautiful! Thanks for sharing.
@GoodlyChandeep
@GoodlyChandeep Жыл бұрын
glad you like this
@jawadahmadehssan6251
@jawadahmadehssan6251 2 жыл бұрын
Thanks Chandeep for sharing this brilliant content.
@GoodlyChandeep
@GoodlyChandeep 2 жыл бұрын
Glad you liked it!
@cristian.angyal
@cristian.angyal 2 жыл бұрын
Great video! Thanks for sharing!
@patrickbrom2702
@patrickbrom2702 2 жыл бұрын
This is great, can also be used with loading PDF, and so on, thank you!
@Softwaretrain
@Softwaretrain 2 жыл бұрын
Thanks, Chandeep, I liked the part which you use Text.PositionOf for AllOccurance but for split by variable columns why do you make it really complicated?!!! Just remove the list in the last argument of Table.SplitColumn function. (then it will be dynamic for new columns)😉
@GoodlyChandeep
@GoodlyChandeep 2 жыл бұрын
Didn't know that.. thanks
@martyc5674
@martyc5674 2 жыл бұрын
Wow-- That works really well.. makes me wonder if lots of hardcoded lists in M are Optional Arguments
@martyc5674
@martyc5674 2 жыл бұрын
This only works if the first row happens to have the max delimiters required, I have tried, and lets say if the first record has 2 delimiters, then you get 3 columns and no more.
@Softwaretrain
@Softwaretrain 2 жыл бұрын
@@martyc5674 Of course, I reached to this point and the solution is making Custom column as =List.Count(List.Split([Hobbies],",")) And before split, we must sort z to a this custom column. Still easier.
@LuciusSullaFelix
@LuciusSullaFelix Жыл бұрын
Excellent video...great explanation....subscribed.
@IlaPatel811
@IlaPatel811 2 жыл бұрын
Just the tip I was looking for, Thank you! :)
@GoodlyChandeep
@GoodlyChandeep 2 жыл бұрын
Glad I could help!
@KuldeepSingh-nq1vi
@KuldeepSingh-nq1vi 2 жыл бұрын
Wow 😲 Chandeep Amazing!, what a technique you taught. Please solve my problem also which I commented in another's video. How can I pass dynamic list into table.combine function.
@pawewrona9749
@pawewrona9749 2 жыл бұрын
I did this solution some time ago more for a "sport" activity. However, the easier way is to use to Text.Split which will convert the text into list, and then expand the list.
@martyc5674
@martyc5674 2 жыл бұрын
Excellent Chandeep 👍👍
@SandipanSarkar-c8v
@SandipanSarkar-c8v 11 ай бұрын
Finished watching
@joebateman9668
@joebateman9668 Жыл бұрын
Very, very cool and handy tip!!
@GoodlyChandeep
@GoodlyChandeep Жыл бұрын
Glad you liked it
@davidmvg216146
@davidmvg216146 2 жыл бұрын
This great content, cheer for your good work! 👍🎉
@GoodlyChandeep
@GoodlyChandeep 2 жыл бұрын
Glad you like! 💚
@JenMayB
@JenMayB 2 жыл бұрын
Thank you so much! I am having a problem in that I need to split a column up to 15 characters for example. The column has characters up to 15 and then a space and then another set of characters but within those first 15 characters there can also be spaces, So I can’t split by the delimiter of a space. And I can’t split by 15 characters because sometimes it is less than 15 characters. I need to make the split dynamic but I am very lost on what to tell it to do.
@MarioSaldanhaLobo
@MarioSaldanhaLobo 2 жыл бұрын
Thanks for the explanation. I've shorten it a bit. This avoids me having to clean up added columns in the end. The 'n' column, that contains the number of occurrences for ';' exists only inside the MaxAnswers step. I could also add it and then refer to a previous step, true... MaxAnswers = List.Max(Table.AddColumn(Source, "n", each List.Count(Text.PositionOf([Answers], ";", Occurrence.All)) + 1)[n]), HeadersAnswers = List.Transform({1..MaxAnswers}, each "Answer"&Text.From(_)),
@qasimawan3568
@qasimawan3568 Жыл бұрын
This is amazing, exactly what I needed. Can I ask, how do you come up with this logic/idea? Does it come naturally or..
@fajnefajne4339
@fajnefajne4339 2 жыл бұрын
Excellent. Thank you very much!
@GoodlyChandeep
@GoodlyChandeep 2 жыл бұрын
Glad you like it 😊
@irenegurne8953
@irenegurne8953 Жыл бұрын
Love it! but is there also a way to covert it each in a rows rather than columns?
@yewchoob85
@yewchoob85 Жыл бұрын
Very well put together video
@GoodlyChandeep
@GoodlyChandeep Жыл бұрын
Glad you enjoyed!
@patrickmueller9658
@patrickmueller9658 Ай бұрын
Thank you!
@bithepower9081
@bithepower9081 2 жыл бұрын
As always amazing stuff Chandeep
@GoodlyChandeep
@GoodlyChandeep 2 жыл бұрын
Thank you 😊
@egbertdejong6377
@egbertdejong6377 2 жыл бұрын
Great content!
@pmsocho
@pmsocho 9 ай бұрын
Awesome! 👍
@stlaurent26
@stlaurent26 Жыл бұрын
Thank you!
@OzduSoleilDATA
@OzduSoleilDATA Жыл бұрын
Very Goodly,my good sir! 🔥👊🏽🔥
@GoodlyChandeep
@GoodlyChandeep Жыл бұрын
Thanks Oz. Glad to see you here!
@iankr
@iankr 2 жыл бұрын
Great video, thanks! Your son sounds cool 😀
@GoodlyChandeep
@GoodlyChandeep 2 жыл бұрын
Thanks Man!
@singhalmonica
@singhalmonica 2 жыл бұрын
Great lesson once again.... Sir pls help to understand how get total of if we have numbers in place of Hobbies. Pls help sir...
@blitzerdisco
@blitzerdisco Жыл бұрын
thanks for great tutorial! what if there would be more columns like Hobbies_1, Hobbies_2 and few items in each of them?
@teigenxayden
@teigenxayden 8 ай бұрын
The red color code is hard code,to modify them is a good job.
@Tuhin380
@Tuhin380 8 ай бұрын
Just amezing❤❤
@mahathmasadineni2884
@mahathmasadineni2884 2 жыл бұрын
It is awesome chandeep sir, Can you please help me how can we add multiple custom columns in single step at power query
@sukhomoyb
@sukhomoyb 2 жыл бұрын
Wow just wow ...
@GoodlyChandeep
@GoodlyChandeep 2 жыл бұрын
Thanks 😊
@mattmatt245
@mattmatt245 2 жыл бұрын
Hi Chandeep, Did you do a video on how to remove duplicates when column values can be swapped like (1,2) and (2,1) would be a duplicate. Thanks
@theresaverburg
@theresaverburg 9 ай бұрын
Is it possible to have unique values only in the columns? In your example, the "sleeping" value would have its own column.
@nonoobott8602
@nonoobott8602 7 ай бұрын
Amazing ❤
@kennethstephani692
@kennethstephani692 2 жыл бұрын
Great Video!!
@GoodlyChandeep
@GoodlyChandeep 2 жыл бұрын
Thank you 💚
@rrrraaaacccc80
@rrrraaaacccc80 9 ай бұрын
Great 💯👍
@leebecker8255
@leebecker8255 2 жыл бұрын
Now I want to trim (or do some other function) to all of the columns.. Can you think of a good way to do that?
@MrAbrandao
@MrAbrandao 7 ай бұрын
I found a bug in the split function while working with a large dataset. I was manually applying a sequence of commands, with the split function in the middle. I was splitting a column using the delimiter ";;;". The columns had a varying number of delimiter occurrences, but I expected them to consistently generate 4 or 5 columns each. Only later did I realize that the split function was only generating 2 columns. I had to re-run the split operation, and only then did it generate the correct number of columns. Now, whenever I apply the split command, I wait for it to show the detected number of columns before applying it again.
@thamilanban
@thamilanban 2 жыл бұрын
Thank you
@gennarocimmino
@gennarocimmino 2 жыл бұрын
Very interesting tutorial. But you didn't foresee that in the future you might list a little friend of your friends and that he will have other hobbies, for example football and Crying, just two hobbies, but football would deserve a new separate column and the current formula does not provide for this case .... :) :) Greetings.
@samuraize24
@samuraize24 Жыл бұрын
Golden!
@GoodlyChandeep
@GoodlyChandeep Жыл бұрын
Thanks!
@NarendraSunku
@NarendraSunku 2 жыл бұрын
You are genius
@GoodlyChandeep
@GoodlyChandeep 2 жыл бұрын
Thank you! 😊
@thebhaskarjoshi
@thebhaskarjoshi 2 жыл бұрын
Great video
@GoodlyChandeep
@GoodlyChandeep 2 жыл бұрын
💚
@emilmubarakshin49
@emilmubarakshin49 8 ай бұрын
Excellent video once again. Does Rehet means Happiness?
@GoodlyChandeep
@GoodlyChandeep 8 ай бұрын
it means calm
@Tat-cx1lr
@Tat-cx1lr Жыл бұрын
Bravo
@augustriandyrizkymaris2894
@augustriandyrizkymaris2894 Жыл бұрын
my report have an uneven space length.. is there a way to split them?
@mchllwoods
@mchllwoods 2 жыл бұрын
This tutorial is great but it's not meeting my needs exactly. My issue is I have a list of names and I want to split them into columns by First Name, Middle Name or Initial, Last Name, and Suffix name. Not all have a suffix, middle int/name or period. when I split them last names go into the middle name column and I don't know how to bring it to the right column. When I split the delimiter one step at a time by the first name it's in the right column but when I split the second time I run into problems. How do I fix this?
@GoodlyChandeep
@GoodlyChandeep 2 жыл бұрын
Can you please send me some dummy data and describe the problem clearly - goodly.wordpress@gmail.com
@timestoryx
@timestoryx 4 ай бұрын
Hello People, Goodly FC here ! :D
@josealvesferreira1683
@josealvesferreira1683 2 жыл бұрын
Very good
@GoodlyChandeep
@GoodlyChandeep 2 жыл бұрын
Thanks!
@antoniodelpozzo2652
@antoniodelpozzo2652 2 жыл бұрын
Great!
@GoodlyChandeep
@GoodlyChandeep 2 жыл бұрын
Thanks 😊
@Ychhenghak
@Ychhenghak 2 жыл бұрын
You made the step look fancy but it happens to me not remember the syntax.
@danielbarber7329
@danielbarber7329 2 жыл бұрын
Awesome trick however is there a way to sort the information. Let's say you asked 100 people and they chose a hobby but it appears any of them columns in the order it was split. Maybe you want a column based on the hobby type.
@tomekleddo8537
@tomekleddo8537 Жыл бұрын
Cheers!
@GoodlyChandeep
@GoodlyChandeep Жыл бұрын
Cheers! Thanks!
@sahiladya8473
@sahiladya8473 2 жыл бұрын
that's amazing
@GoodlyChandeep
@GoodlyChandeep 2 жыл бұрын
Thanks 😊
@h.m.nafidrahman2145
@h.m.nafidrahman2145 2 жыл бұрын
Chandeep, how do i dynamically split up to the second last value in PBI for each record? For e.g. I have a table with EE hierarchy for each user- For John, hierarchy is User1.User2.User3.User4 If John is User4, I want to split his hierarchy till User3. For Jane, hierarchy is User1.User2.User3.User4.User5 If Jane is User5, I want to split her hierarchy till User4 With the current setup, the columns are split into 5 columns by default, as there are 5 users in the table. So even though John is User4, the columns are split into 5 columns, where the 4th column consists of John's name. This is how the columns are split: User 1 | User 2 | User 3 | User 4 | User 5 M1 | M2 | M3 | John | NULL M1 | M2 | M3 | M4 | Jane I want the columns to stop at User 3 for John, so column USER 4 should be NULL as well Any way to split the columns based on each record, rather than looking at the maximum number of splits in the table?
@BajrangSingh-js2qq
@BajrangSingh-js2qq 11 ай бұрын
Hi I have some need in data
@HarshilPatel497
@HarshilPatel497 2 жыл бұрын
This solved my main issue to learn m code how to modify but couldn't we split the hobies by delimiter by row and then we get a unique list and refer that list this would solve issue if you have duplicate entries...
@GoodlyChandeep
@GoodlyChandeep 2 жыл бұрын
Yes there could be many ways of solving such problems
@HarshilPatel497
@HarshilPatel497 2 жыл бұрын
Yes, And you know it all... You explain things very well..and i think far better than anyone else when it comes to power query.....
@AnbarasuAnnamalai
@AnbarasuAnnamalai 2 жыл бұрын
It is nice
@GoodlyChandeep
@GoodlyChandeep 2 жыл бұрын
Thanks!
@adilarsalan6020
@adilarsalan6020 2 жыл бұрын
Hello where to find your fundamental course.
@GoodlyChandeep
@GoodlyChandeep 2 жыл бұрын
goodly.podia.com/power-bi-beginner-course
@rrrraaaacccc80
@rrrraaaacccc80 7 ай бұрын
💯👍
@viveksharma4193
@viveksharma4193 2 жыл бұрын
Apart from your video, I have a question, is there any way to fetch data from Facebook by using a power query?
@GoodlyChandeep
@GoodlyChandeep 2 жыл бұрын
www.goodly.co.in/facebook-dashboard-in-excel/
@janayarangel4238
@janayarangel4238 2 жыл бұрын
SAVING LIIIIIIVESSSSSSS
@GoodlyChandeep
@GoodlyChandeep 2 жыл бұрын
Thank You!
@sebfromgermany3819
@sebfromgermany3819 2 жыл бұрын
Other functions, e.g. Text.Combine uses a list to reference the columns to be combined. So far I was unable to define a list similar to this example to get this function working. Was anybody more successful with Text.Combine? Seb
@GoodlyChandeep
@GoodlyChandeep 2 жыл бұрын
Sorry what is the issue that you're facing. Text.Combine works on a list (and not a column references)
@sebfromgermany3819
@sebfromgermany3819 2 жыл бұрын
I have a table with three columns Col1 … Col3. I merge the columns into a new column via add column / merge column with gives this M code: = Table.AddColumn(Source, "ColCombine", each Text.Combine({[Col1], [Col2], [Col3]}, "|"), type text) I wanted to do something similar to your video that I have a formula like = Table.AddColumn(Source, "ColCombine", each Text.Combine(ListColHeading, "|"), type text) So far I did not manage to create a List that the content of [Col1], [Col2], [Col3] is referenced - did I explain okay?
@sebfromgermany3819
@sebfromgermany3819 2 жыл бұрын
A possible solution is using Table.CombineColumns instead of merging the columns into a new column. The steps to perform are - Creating the list “ColList” from the tables header - Transforming every column into type text using “ColList“ in combination with Table.TransformColumnTypes - Applying Table.CombineColumns in combination with “ColList“ Code could look like this: Source … IntoText = Table.TransformColumnTypes(Source, List.Transform(ColList, each {_, type text})), CombineCols = Table.CombineColumns(IntoText,ColList,Combiner.CombineTextByDelimiter(":", QuoteStyle.None),"ColsCombined") I got the inspiration for this from the video 😉 kzbin.info/www/bejne/Z5fRaZmOjtxpg5Y
@SamehRSameh
@SamehRSameh 2 жыл бұрын
What is the difference between each & _ ?? When use this or this ????
@GoodlyChandeep
@GoodlyChandeep 2 жыл бұрын
each is they keyword that let's you access each row of a table or a list. _ is the keyword to reference each item in the list or table.
@arunkumarkesavan6077
@arunkumarkesavan6077 2 жыл бұрын
Super duber
@GoodlyChandeep
@GoodlyChandeep 2 жыл бұрын
Thanks!
@powerbinareal
@powerbinareal Жыл бұрын
#powerbinareal
@mshahzad3224
@mshahzad3224 4 ай бұрын
Hello bro Plz share email for contecting
Advanced Unpivoting Tricks in Power Query
30:19
Goodly
Рет қаралды 23 М.
Увеличили моцареллу для @Lorenzo.bagnati
00:48
Кушать Хочу
Рет қаралды 8 МЛН
Happy birthday to you by Secret Vlog
00:12
Secret Vlog
Рет қаралды 6 МЛН
CompTIA Security+ Exam Study Guide
16:50
CyberSecurity Summary
Рет қаралды 2
Power Query - Dynamically Split into Columns
6:49
BA Sensei
Рет қаралды 7 М.
List.Accumulate in Power Query with Practical Examples
27:26
Table.TransformColumns in Power Query | Super Function ⚡
18:50
5 Surprising Power Query Tricks You Need to Know!
14:14
Goodly
Рет қаралды 34 М.
PQ Challenge Splits and Lists
17:56
Access Analytic
Рет қаралды 12 М.
16 - Split Columns in Power Query in Excel
7:08
TrumpExcel
Рет қаралды 31 М.
APQ13 | M-Code Functions | List.Split | List.Zip | Advanced Power Query
11:53
ِAAA Excel English
Рет қаралды 3,2 М.
List.Accumulate Case Study in Power Query
13:23
Goodly
Рет қаралды 25 М.