Convert Multiple Column Groups to Rows in Power Query

Поділитися
Вставка
  • Опубліковано 28 лис 2024

КОМЕНТАРІ • 155

  • @MartinKuek
    @MartinKuek 2 роки тому +40

    Knowing what all those functions do is one thing. But your creativity to put them all together into a solution is next level genius.

  • @BboyDaquack
    @BboyDaquack 2 роки тому +10

    I've been searching for 2 days trying to find a solution to this kind of messy raw data with this specific format. I've gotten unbelievably lucky for you to upload this right when I was looking for it! thank you so much!

    • @GoodlyChandeep
      @GoodlyChandeep  2 роки тому

      Cool! Glad it was helpful

    • @AbhayGadiya
      @AbhayGadiya Рік тому +1

      Checkout this alternative solution as well - ua-cam.com/video/TtBDA34Hhf0/v-deo.html

  • @MrToypon
    @MrToypon Рік тому +1

    Your way of handling M to flip and twist the data without actually doing the steps is very inspiring and on a whole different level than many other UA-camrs who show step by step code. Keep up the wonderful work of spreading knowledge and understanding! Thank you very much!

    • @GoodlyChandeep
      @GoodlyChandeep  Рік тому

      Thanks Tommy.. I should expect to see you around more often:)

  • @vineshparekh4228
    @vineshparekh4228 Рік тому

    I am working on the same problem on my project where I have 9 columns and I need to keep 3 columns and stack the data underneath of 3 columns.
    This solution will work perfect for me but I need to watch this video for many times to understand better.
    You're providing solutions to many PQ users! Bravo :)

  • @imronnesia5170
    @imronnesia5170 7 місяців тому

    unbelievable. I am new in PQ, just starting to learn it about a week ago by self-thaugt. At the 1st time, i guess this is a course for advance users, but with your excellent explanation, it's easy to understand by everyone. Now i learn many things from your channel everyday. thank you

  • @larmondoflairallen4705
    @larmondoflairallen4705 2 роки тому +1

    Incredible! I have always disliked the transpose/pivot/unpivot approach for anything but the smallest data sets. This is a much better solution.

  • @HachiAdachi
    @HachiAdachi 2 роки тому +3

    I KNEW there would be more to it than the Transform-Pivot-Unpivot approach! 😮 I really need to learn this "not breaking the stream" thing... I look forward to your video on that soon! Thank you, Chandeep!! 👍

  • @vl21i
    @vl21i 2 роки тому

    Wow ! What a way to do it without involving transpose anywhere.
    You have the source of all the DAX formulas and used it in right place at right time

  • @ankursharma6157
    @ankursharma6157 2 місяці тому

    ज़बरदस्त 👏🏽
    क्या learning हुई . . मज़ा आ गया 👌🏽
    Thank You 🙏🏽

  • @jorstube
    @jorstube 2 роки тому

    Friend I don't know how many times they have told you; but you are a genius...greetings from Chile

  • @AAAExcel
    @AAAExcel 2 роки тому +1

    Fantastic as usual, one comment, if we add sub column to only one location the query won't work precisely. i did a solution using a combination of transpose group by and pivot (I know it is not as clean as yours) but it caters for this probability. at the end, i can't thank you enough for the sharing your valuable ideas

  • @abhijeetshetye8785
    @abhijeetshetye8785 2 роки тому +1

    Very interesting. I achieved solution with pivot, fill down, unpivot 😅. I short lot of steps I created. thank you for this easy solution.🎉

  • @keacoq
    @keacoq 2 місяці тому

    I had a table with some common columns then 19 groups of 9 columns of which I wanted to use 5 columns from each group. In the end I made a union query in Access. I worry that I might have errors in that query.
    Now I see that powerQuery could do the job. But there is a learning curve. Thank you for showing me that what I want to do should be possible.
    Question: How to be sure that data is correctly transformed?

  • @hasnadhiya7071
    @hasnadhiya7071 2 місяці тому

    omg this is wht i'v been searching for a whole week

  • @williamarthur4801
    @williamarthur4801 2 роки тому

    I shall be working through this quite a few times I think, I always seem to learn a new function , if not more, on watching your videos. Thank you. Oh, as someone else has commented "not breaking the stream' , don't understand?

  • @avairagade71
    @avairagade71 2 роки тому +1

    Incredible video it's helpful for my project.. only one challenge in my dataset is date in single column

  • @sztap
    @sztap 9 місяців тому

    Just found this channel and it's so amezing how much I can learn from it. Thanks for your hard work, please continue sharing your videos.

  • @KuldeepSingh-nq1vi
    @KuldeepSingh-nq1vi 2 роки тому +1

    It was very complicated for me, but you made it so simple.Thanks Bro..

  • @DeeptiDubey1380
    @DeeptiDubey1380 2 роки тому

    You have a indepth knowledge of DAX and it's become tricky for people like us who are still learning. 😁😁😁😁

  • @PowerMacro
    @PowerMacro 2 роки тому

    I will try with my data, hopefully it will be automate my work. THANKS A MILLION PAAJI ❤️

  • @tracywilliams61
    @tracywilliams61 Рік тому

    Amazing, I have this exact problem. You are a great trainer, you explained a difficult solution easy to follow

  • @IlaPatel811
    @IlaPatel811 2 роки тому +1

    Incredible! Thanks, I am really getting a better understanding of how M code works.

  • @iankr
    @iankr Рік тому +1

    Wow! This is so powerful. As Martin Kuek says, there's understanding the separate functions, but you also need to know how to combine them in the stepwise-driven process that is Power Query. So far, my PQ experience is with each step referring to the previous one. But here, you're referring back to earlier steps. I came across this video via a Google search, and I think I'll be able to adapt your techniques into what I need to do. Many thanks!

  • @DavidGzirishvili
    @DavidGzirishvili 2 роки тому +5

    Amazing! It becomes an art, an entertainment! Thanks for that and waiting for another release! :-)

  • @McKaySavage
    @McKaySavage 2 роки тому +1

    Very helpful solution, and I think fairly elegant. I learned some useful techniques here that apply in lots of other situations too. Thanks!

  • @EricaDyson
    @EricaDyson Рік тому

    Genius indeed! Fantastic. Brilliant! I'm in awe!

  • @younesataei9993
    @younesataei9993 4 місяці тому

    Hi, what's your idea for this one?

  • @arunabhamahajan
    @arunabhamahajan 3 місяці тому

    Cleared many basic concepts

  • @tonydreisenstock
    @tonydreisenstock 2 роки тому

    Hi I wish I could remember all the M code you use. I just love your solutions and approach to problems. Thanks!

  • @lindalai1406
    @lindalai1406 Рік тому

    I also have this same problem. Thank you this creative solution.

  • @santoshhmt
    @santoshhmt Рік тому

    Hi, these steps would be considered as query folded?

  • @ssomtom
    @ssomtom 2 роки тому

    Fantastic. But what's happening how can your method improves if only Mumbai has a plus sub-column, so not all cities have same amount

  • @pbiqueryous
    @pbiqueryous 2 роки тому +1

    Exquisite. Simply exquisite. Bravo sir. Thank you for sharing!

  • @claudiaouellet8499
    @claudiaouellet8499 Рік тому

    This is so visual and well explained; amazing!

  • @julie_chen
    @julie_chen Рік тому

    Unbelievably super dynamic...

  • @ShubhamSharma-ls6hj
    @ShubhamSharma-ls6hj 2 роки тому

    Hi bro, thanks for your effort today I learned one more new thing. Do you have any solution to automatically track ranges in various excel sheet in PQ. As I need to append them and every time i have to convert data in table form.

  • @ajitkanabar84
    @ajitkanabar84 Місяць тому

    i followed your video to create
    however, in my case i have
    col.1 item
    col.2 price1
    col.3 qty1
    col.4 price2
    col.5 qty2
    and list of additional prices and qty's cols.
    i wanted to append all the price and qty for the same list of items.
    Any suggestions?

  • @martyc5674
    @martyc5674 2 роки тому

    Wonderful Chandeep- you make it look too easy!

  • @DCarW
    @DCarW Рік тому

    I'm trying to do this with some longitudinal data. The initial column has meaning and I want to retain it and merge it with each set of 2 values.
    SourceDataHeaders: SomeIDThatHasMeaning,Name1,Age1,Name2,Age2,Name3,Age3,.....,Name40,Age40
    EndDataHeaders: SomeIDThatHasMeaning,Name,Age
    I was hoping I could remerge the list (one list for all the IDs and another with my split sets of 2) but haven't figured that out yet.

  • @victor_wang_1
    @victor_wang_1 2 роки тому +1

    This solution, namely using List.Split, assumes a consistent number of sub-headers for each city. If any city had a different number of sub-headers than the rest, this would fail. I considered using List.Split, but I thought it violated the conditions of the challenge as its not truly dynamic. Garucia had an excellent solution that was fully dynamic.

    • @adlaalnajmi9162
      @adlaalnajmi9162 2 роки тому

      Which channel you referring to?

    • @GoodlyChandeep
      @GoodlyChandeep  2 роки тому

      Yes. I agree. Her code is fantastic!

    • @GoodlyChandeep
      @GoodlyChandeep  2 роки тому

      See the blog comments - goodly.co.in/convert-multiple-column-groups-to-rows-power-query/

    • @adlaalnajmi9162
      @adlaalnajmi9162 2 роки тому

      I cold not find Garcinia channel. Can you send me the lik, pls

    • @victor_wang_1
      @victor_wang_1 2 роки тому

      @@adlaalnajmi9162 See the blog comments as Goodly linked in this thread

  • @jist6953
    @jist6953 3 місяці тому

    How do you expand the lists into one long column but in the order of groups of two? List.combine?

  • @sw33t3stkid
    @sw33t3stkid 3 місяці тому

    so good and really nicely explained! you won another subscriber!

  • @abhiadfree6331
    @abhiadfree6331 Рік тому

    You are absolutely crazy genius

  • @AbhayGadiya
    @AbhayGadiya Рік тому

    Please check the alternative solution of using Pivot and unpivot method without breaking streaming of power query

    • @AbhayGadiya
      @AbhayGadiya Рік тому

      Link to video - ua-cam.com/video/TtBDA34Hhf0/v-deo.html

  • @navedsaiyed9881
    @navedsaiyed9881 2 роки тому

    Thank you for creating this video Exact solution to what i was looking 4.........Cheerzzz

  • @akkintouch
    @akkintouch 9 місяців тому

    What if I have another column
    How can I bring them into the column pairs
    Example
    I have a column named index
    It contains numbers 1-6
    So using your solution i will just take everything other than what it is colA
    Then I want to make sure col A is added into the col pairs of name and age
    How do I put that?

  • @Chris-tj4es
    @Chris-tj4es 2 роки тому

    Let's say you have an additional column at the begining of the table: The name of the column would be CompanyName and in this column from row 2 to 7 you would have the name of company. How would add this colmun at the end of your model? thanks

  • @elikent78
    @elikent78 2 роки тому

    another fantastic video, chandeep. not just teaching us pq. also teaching us to think like programmers.

  • @txreal2
    @txreal2 Рік тому

    How do keep only columns I need/remove other columns based on a List?
    How do I create that List in Power Query or import that List?
    Thanks

  • @randolfojolongutierrez5311
    @randolfojolongutierrez5311 2 роки тому

    Excelente saludos desde Guatemala!!!

  • @SanthoshKumar-cw2kq
    @SanthoshKumar-cw2kq 2 роки тому

    Great explanation with working session for this complex data set. Thanks you !!

  • @julie_chen
    @julie_chen 2 роки тому

    Unbelievable 👏👏 learned a lot of functions that can be used variably in other aspects too 🎉😊

  • @manuelmontalvo2007
    @manuelmontalvo2007 Рік тому

    I like your approach. Keep up the good work!

  • @anneerrudhmmahepate967
    @anneerrudhmmahepate967 2 роки тому

    Hello Chandeep, I am stuck at 1:49 . Can you please explain the line Source{0}[Data]. When I am loading the data, power query is converting it into excel and then loading.

  • @walterstevens8676
    @walterstevens8676 7 місяців тому

    Basic question, but when you start by extracting the columns names, you have an M Query line Sheet1_Sheet{1}. What is Sheet1_Sheet, because I get a message saying that Sheet1_Sheet isn't recognised ? I've tried the table name_Sheet and that didn't work

  • @imadnb3579
    @imadnb3579 2 роки тому

    Brilliantly explained. Cheers

  • @АндрейТямаков
    @АндрейТямаков 2 роки тому

    Спасибо, оч круто ) А то я всегда пользовался транспонированием

  • @pierre-louisviala3191
    @pierre-louisviala3191 8 місяців тому

    Awesome ... as usual Chandeep !

  • @dineshnegi75
    @dineshnegi75 2 роки тому

    Dear Charan,
    Need a solution for extracting the data from a table which has values in the below columns:
    Column_A, Column_B, Column_C, Column_X, Value X, Column_X, Value_Y, Column_X, Value_Z
    In such as way that it looks like
    Column_A, Column_B, Column_C, Column_X, Value_X
    Column_A, Column_B, Column_C, Column_X, Value_Y
    Column_A, Column_B, Column_C, Column_X, Value_Z
    Which means that here the Column_X has been repeated 3 time (in actual report this is repeated 30 times) and after each Column_X, value of that is placed in the next column against the same (Value_X, Value_Y, Value_Z ...... again in 30 columns).
    Look forward to a solution.

  • @akkintouch
    @akkintouch 9 місяців тому

    Everything is correct but I have 1 more column which I want to accumulate into each column group is that possible? Someone please help me

  • @eslamfahmy87
    @eslamfahmy87 Рік тому

    hi, i think that solution is very hard! why you do not go with transpose and then merge the row headers and after that use unpivot other columns.

  • @kameshsharma5164
    @kameshsharma5164 2 роки тому

    Hello Sir
    Please make a power bi complete tutorial from beginner to advance level in Hindi

  • @sachin.tandon
    @sachin.tandon 2 роки тому

    This is really good, Goodly! Thank you for sharing!

  • @karimfayazi
    @karimfayazi 2 роки тому

    Incredible! Thanks, Thanks for your wonderful video

  • @Milhouse77BS
    @Milhouse77BS 2 роки тому

    This reminds me of functional programming in a Lisp, like Clojure.

  • @ExcelWithChris
    @ExcelWithChris 2 роки тому

    Absolute genius! Any courses for beginners?

    • @GoodlyChandeep
      @GoodlyChandeep  2 роки тому

      See this - goodly.co.in/learn-power-query/

    • @ExcelWithChris
      @ExcelWithChris 2 роки тому

      @@GoodlyChandeep does this include M? I have a good understanding and use of PQ, need to learn M from scratch and the way you explain it is brilliant.

    • @GoodlyChandeep
      @GoodlyChandeep  2 роки тому

      @@ExcelWithChris I am currently working on a course on M Language.. You'll hear the announcement on UA-cam soon :)

  • @Dev_Bartwal
    @Dev_Bartwal 2 роки тому

    Fantastic Paji
    You are rock

  • @sachin.tandon
    @sachin.tandon 2 роки тому

    This can also be solved using the native Excel array formulae...

  • @PrabhatKumar-tn3be
    @PrabhatKumar-tn3be 2 роки тому

    your videos are really helping me a lot in M. I am stuck in power query if you could please help me. I am not able to write dax or command excel line in M if you could please help me
    =VALUE(MID([DevData],FIND("CT",[DevData])+3,FIND(";",MID([DevData],FIND("CT",[DevData]),LEN([DevData])))-4))

  • @theexcelproject6973
    @theexcelproject6973 2 роки тому

    That's a lot of helpp, especially to someone like who is just starting with M.

    • @GoodlyChandeep
      @GoodlyChandeep  2 роки тому +1

      Glad it was helpful !

    • @theexcelproject6973
      @theexcelproject6973 2 роки тому

      @@GoodlyChandeep Hey! It is. A lot of thanks from the Philippines. I just started a Reporting job so this is really helpful.

  • @DeronHuskey
    @DeronHuskey 2 роки тому

    THAT was cool! Thanks!

  • @bagnon
    @bagnon 2 роки тому

    I don't see the name "Sheet1_Sheet" on your list of applied steps, so I don't understand how you are able to refer to it.

    • @GoodlyChandeep
      @GoodlyChandeep  2 роки тому

      the navigation step is called Sheet1_Sheet

    • @bagnon
      @bagnon 2 роки тому

      @@GoodlyChandeep Thanks, I guess I missed how you give a step a custom name without changing the displayed name.

    • @GoodlyChandeep
      @GoodlyChandeep  2 роки тому +1

      @@bagnon Well you cannot. That unique anomaly is only limited to the Navigation Step ;)

  • @shreedharan.moorthy
    @shreedharan.moorthy Рік тому

    You are incredible

  • @s1ngularityxd64
    @s1ngularityxd64 Рік тому

    amazing solution🙂

  • @smartwork4768
    @smartwork4768 2 роки тому

    Awesome trick.

  • @nies_diy986
    @nies_diy986 6 місяців тому

    Super amazing 😍

  • @kennethstephani692
    @kennethstephani692 2 роки тому

    Great video!!

  • @rajrawat287
    @rajrawat287 Рік тому

    You look like a magician who does belive in Impress others rather than teaching

  • @zuzanabocanski6580
    @zuzanabocanski6580 3 місяці тому

    Thanks!

  • @damionc
    @damionc 2 роки тому

    You are the boss!!!

  • @zahoorsarbandi2982
    @zahoorsarbandi2982 2 роки тому

    Superb!!!!

  • @dieudonnepare9295
    @dieudonnepare9295 Рік тому

    very Great !!!

  • @KawanExcel
    @KawanExcel 2 роки тому

    this guy is god of M

  • @puthdarakim1175
    @puthdarakim1175 Рік тому

    very good

  • @SamehRSameh
    @SamehRSameh 2 роки тому

    Greatest 🎉🎉

  • @ItsNotAboutTheCell
    @ItsNotAboutTheCell 2 роки тому

    Now that's some good M :)

  • @richgeraldgarrido9944
    @richgeraldgarrido9944 Рік тому

    Why is the First step Sheet_Sheet1 instead of Navigation?

    • @GoodlyChandeep
      @GoodlyChandeep  Рік тому

      Haha.. Navigation is reserved name. You cannot use it.
      Just hop over to the advanced editor to see the actual name of the navigation step.

  • @lopher70
    @lopher70 2 роки тому

    This is dam good!!!

  • @FRANKWHITE1996
    @FRANKWHITE1996 2 роки тому

    Magic 🎉❤

  • @modernboutique1389
    @modernboutique1389 Рік тому

    Nice

  • @mrunalbhongade8268
    @mrunalbhongade8268 2 роки тому

    Please teach .lam 14 and would like to be an amazing DJ just like marshmallow

  • @kasmirasmarzo
    @kasmirasmarzo Рік тому

    Great video, but not all of us are fellas

    • @GoodlyChandeep
      @GoodlyChandeep  Рік тому

      Friends feels too clichéd. I am treating "fellas" as gender agnostic 😜

  • @chengwang411
    @chengwang411 2 роки тому +2

    why do i bother? it's out of my league 🤣🤣

  • @milux616
    @milux616 2 роки тому

    🤩