Power Query Group By: Complete Lesson. 10 Examples. 365 MECS Class 16

Поделиться
HTML-код
  • Опубликовано: 22 авг 2024

Комментарии • 81

  • @collontomlyn6567
    @collontomlyn6567 9 месяцев назад +3

    When my colleagues ask for training resources to learn PQ, your channel is the first place I send them to. DON'T STOP DOING WHAT YOU'RE DOING!

    • @excelisfun
      @excelisfun  9 месяцев назад

      Yes, Sir!!!! I have been on family emergency for last 6 months. I was right in the middle of writing a new book about M Code in Power Query, but it got put on hold. Soon, though : )

  • @roywilson9580
    @roywilson9580 Год назад +4

    Another epic video, Mike. Thanks for posting. Groupby has so many uses as both a step in it's own right and as an intermediate step that it makes life much easier than in the good (?) old days of pages long worksheet formulae. With a little extra preparation you can get them really robust; no more hours of rewriting a whole worksheet because the management team sneezed out a bright idea to rename/add/delete a column to make the report prettier. I am with you on the addition of null lnes into the dataset, I cannot imagine why anyone would want to do such a thing! There should be a special circle of hell for them and the guys that isnsist on centred/merged cells all over the workbook.

    • @excelisfun
      @excelisfun  Год назад +1

      You are cracking me up. You say wise and funny things: "because the management team sneezed out a bright idea "... All the time, with snot everywhere : ( "special circle of hell for them" and centered/merged everywhere... Thanks for the Teammateshipness ; )

    • @roywilson9580
      @roywilson9580 Год назад

      @@excelisfun Thanks, Mike. It is funny now but when in the situation of yet another hours long update it could be dire lol. Proud to be a teammate!

  • @z.719
    @z.719 Год назад +2

    Wow, greatly widen my horizon on how to use power query and group by to do data transformations.

    • @excelisfun
      @excelisfun  Год назад

      Yes!!! I Love to hear that. That is the goal : )

  • @nsanch0181
    @nsanch0181 2 месяца назад +1

    Thank you for the great video Mike. I really enjoy when I get to use the group by function so I this was especially fun. Thank you so much Mike! Right Click+G is a something I learned especially helpfull.

    • @excelisfun
      @excelisfun  2 месяца назад

      Yep, Right-click Key + G Rules!!!

  • @gvitullib
    @gvitullib Год назад +5

    Another epic videos from ExcelIsfun! For M Code is difficult to find such quality content, thanks MIke!

    • @excelisfun
      @excelisfun  Год назад

      Glad this M Code fun is good for you and our Team!!!! : )

  • @iamjojo999
    @iamjojo999 8 месяцев назад +1

    Amazing quality as usual. The last groupkind is crazy.

  • @zoranmilokanovic6229
    @zoranmilokanovic6229 Год назад +2

    Great video! The only pity is that there was no example with the 5th argument of the Table.Group() function.

  • @shubhampawar8506
    @shubhampawar8506 Год назад +1

    Your videos are like treats for excel lovers❤

    • @excelisfun
      @excelisfun  Год назад +1

      Yes!!!!! Excel Over Treats!!!!!

  • @kiwikiow
    @kiwikiow Год назад +1

    M Code is a powerful tool to transform data. Thank you Mike for making this video. Waiting for the next video about DAX 🙂

    • @excelisfun
      @excelisfun  Год назад

      Glad you like it, My Ghostly Friend!!!!

  • @chrism9037
    @chrism9037 Год назад +1

    As others have said, epic! Great job as always Mike!

    • @excelisfun
      @excelisfun  Год назад +1

      Thanks for the continued support, Chris M!!!!!

  • @marben76
    @marben76 Год назад +1

    Excellent as always.. Thank you 🙏

    • @excelisfun
      @excelisfun  Год назад +1

      You are welcome, Marben!!!

  • @johnborg6005
    @johnborg6005 Год назад +1

    Thanks Mike. Great Video

  • @joaquimcosta952
    @joaquimcosta952 Год назад +1

    Amazing tutorial like always...Thanks for you knowledge!

    • @excelisfun
      @excelisfun  Год назад

      You are welcome, long tine viewer Joajuim!!!

  • @Anthony_Lecoq
    @Anthony_Lecoq Год назад +1

    So great Mike, I like the new addrankcolumn, it feels handy will definitely test it ;)🎉

    • @excelisfun
      @excelisfun  Год назад

      It was new to me. It is a great addition to M!!!!!

  • @GeertDelmulle
    @GeertDelmulle Год назад +2

    Great topic with great stuff in an epic course! What a treat. :-)

    • @excelisfun
      @excelisfun  Год назад +1

      &#table({},{{}}), right? lol

    • @GeertDelmulle
      @GeertDelmulle Год назад

      Hey Mike,
      On the blank rows: Mr. Excel did a video on that not so long ago.
      We responded to that: someone came up with the & trick and I came up with the empty-row table.
      So, you don’t need any column name, and you don’t need the null: it’s just a small bunch of curly brackets you need to put in.

    • @excelisfun
      @excelisfun  Год назад +1

      @@GeertDelmulle Yah, I saw that Mr Excel video. I was surprised he used the longer M Code form the book (he's a book seller, though : ) ). Maybe he did not see the comment from Bill Szysz... but I thought he showed it in video. I thought the Bill Szysz solution seemed the easiest.

    • @GeertDelmulle
      @GeertDelmulle Год назад

      @@excelisfun Yep! I still used Table.Combine but someone else came up with the &.
      And, of course, the main thing here: an empty table, is -er- well, exactly that… :-)
      But all jokes aside: it’s also most robust, we can add empty rows (as many as we need) to any table with any column names.
      And of course, the next step would be to make it into a custom M-function, because we couldn’t be bothered with the same details over and over… You know: we’re lazy like that. :-)
      You should see the faces of the people when they see the seemingly impossible transformations we can do with just one custom function call. From desperation to disbelief… And it’s repeatable, too. Go figure.
      Works wonders for one’s reputation… lol :-)

    • @excelisfun
      @excelisfun  Год назад +1

      @@GeertDelmulle that beautiful ceaseless creativity and masterful logic in the first part, then the lazy... lol

  • @garethwoodall577
    @garethwoodall577 Год назад +1

    Amazing.

  • @ohdjrp4
    @ohdjrp4 Год назад +1

    Thank you for your great work!
    Btw, nice Warriors cap😄😄😄

    • @excelisfun
      @excelisfun  Год назад +1

      Yah, I grew up in Oakland, CA where my Oakland Warriors are king : ) : ) : ) Glad you like the video too!

  • @SyedMuzammilMahasanShahi
    @SyedMuzammilMahasanShahi Год назад

    Thanks Mike for this EXCELlent video.

    • @excelisfun
      @excelisfun  Год назад

      You are welcome, Most Awesome Fellow Teacher : ) : ) : )

  • @zt.5677
    @zt.5677 Год назад

    A great topic. Totally new for me. All of it. Thank you!

    • @excelisfun
      @excelisfun  Год назад +1

      Yes!!!! All new: means tons of knowledge and expanded brain and more fun with analysis.

    • @zt.5677
      @zt.5677 Год назад

      @@excelisfun I am sure you also do lots of learning in addition to designing and presenting the videos. Thank you for your time that you invest into sharing your knowledge.

    • @excelisfun
      @excelisfun  Год назад +1

      @@zt.5677 I do. Many of the longer video take 100 - 200 hours, much of it research nd trial and error. It's fun! You are welcome for it all : )

  • @ExcelInstructor
    @ExcelInstructor Год назад +1

    super Video :)
    Thank you Mike for your hard work

    • @excelisfun
      @excelisfun  Год назад

      You are welcome for the hard work!

  • @zuhebkhan6973
    @zuhebkhan6973 Год назад

    Request you make a video it will be great help sir for us and learner’s thanks in advance

  • @valapo80800
    @valapo80800 Год назад

    je cherchais la manip pour la ligne vide. Merci!!!! Merci!!!!!!! Merci!!!!!

  • @TheHairykoala
    @TheHairykoala Год назад

    Been looking forward to this!

    • @excelisfun
      @excelisfun  Год назад

      It should be great fun : ) : )

  • @mecorowa5642
    @mecorowa5642 7 месяцев назад

    Hi, this tick with text.combine is really great. Is there a possibility to combine also numbers (with out converting to text)?
    Currently I need two steps, one step in group_by: {"Single_Qty", each [Qty]}, and a 2nd step to extract the values: Extract Values from List = Table.TransformColumns(GroupedRows, {"Single_Qty", each Text.Combine(List.Transform(_, Text.From), "#(lf)"), type text})
    Do you have any approach to combine it in one group_by step?
    Thank and Cheers.

  • @jerrydellasala7643
    @jerrydellasala7643 Год назад +1

    Great lesson as usual! I notice that in the Homework queries you use "type nullable number". I've been using just "type number", and don't remember ever seeing the UI generate "type nullable number". Is there any difference in the two?

    • @excelisfun
      @excelisfun  Год назад

      Check out what I just wrote in previous comment:
      Data Type nullable number just means that a null and number are allowed in the column by Data Type (two data types in one column is not usually allowed - although null is technically "the absence of data"). nullable number literally classify a value null in addition to a number type.
      Data Type number just classifies the one data type number. But you can have a null in a number column because null just means the absence of data.
      But here is the crazy thing, when I build two identical fields, each with name numbers and one null, then add Data Type type number and the other gets Data Type type nullable number:
      1) SUM, COUNTROWS and DISTINCTCOUNT DAX function all get same answer.
      2) SUM, COUNT, COUNT(UNIQUE()) Excel Worksheet functions all get same answer.
      3) A merge between the Data Type type number Field and the Data Type type nullable number Field, the merge/join works.
      4) When you try the M Code function Value.Type on both columns, you get the same result
      I could not find much practical difference.
      5) The only thing I have seen online is from Chris Webb and he shows that if you connect to an SQL Database and query performing is performed, then the SQL code written is slightly different to incorporate the nulls, but the performance difference between the two would always need to be tested...
      I guess there is some non-equivalency issue somewhere, but I could not find it except for the SQL code written during query folding.
      Maybe @Bill Szysz or someone else knows?
      However, the user interface does some time pick between the two and will deliver a Data Type type number sometimes and a Data Type type nullable number sometimes. I can't remember an example right off top of my head, but I have definitely seem it. i will keep my eye out for it now.

  • @zuhebkhan6973
    @zuhebkhan6973 Год назад +1

    Hi sir I hope you doing well

  • @zuhebkhan6973
    @zuhebkhan6973 Год назад

    Sir there is ask from my client on the range numbers
    For example I have from and to column in table now need to get range in between

  • @zuhebkhan6973
    @zuhebkhan6973 Год назад

    For eg from column I have 123 and in To column I have 130 now need to get new column with between range like 124,125,126,127, till the end range in dax

    • @excelisfun
      @excelisfun  Год назад

      I have no idea how to do what you have asked. You can try this great Excel / Power BI question site; mrexcel.com/board

  • @jeromeastier462
    @jeromeastier462 10 месяцев назад

    Wahou!

  • @jeanpavan6816
    @jeanpavan6816 Год назад +1

    Hi Mike, is this the last one of your formidable series?

    • @excelisfun
      @excelisfun  Год назад

      No, I have a DAX one and a few more. My Mom got sick and I have been taking care of her so it has been put on hold. The DAX one should be out in a few weeks...

    • @jeanpavan6816
      @jeanpavan6816 Год назад +1

      @@excelisfun Thank you very much for taking th etime to answer. Hope the best to your mom.

  • @Mahesh_Garre
    @Mahesh_Garre Год назад

    well informative

  • @nourreldeenmohamed367
    @nourreldeenmohamed367 Год назад

    Mr girvin
    To work as a freelancer Excel on freelance sites
    Should I learn macros and VBA or I can work on freelance sites without studying macros and VBA ???

    • @excelisfun
      @excelisfun  Год назад +2

      You can't ask me because I never learned VBA at a high level. So I do not have the correct perspective. But I do know that Power Query and the new formula calculation engine and all that goes with that allows one to replace older VBA code.
      However, I guess i could say that you should learn it because the human resource departs still ask for VLOOKUP and Macros, even though we don't use them much any more.

  • @sb47820
    @sb47820 5 месяцев назад

    Is this playlist incomplete because I don't see the videos are in sequence and in between some numbers are missing. Kindly clear it.
    Thanks

    • @excelisfun
      @excelisfun  5 месяцев назад

      The home page of my excelisfun channel here at RUclips has classes and an intro video about it all. Here is the class you are looking for:
      ruclips.net/p/PLrRPvpgDmw0nre_bTeBfJWjrnixKoyNtW

  • @vamsik7001
    @vamsik7001 Год назад +1

    Where can I learn complete power query and DAX formulas. Please suggest..

    • @excelisfun
      @excelisfun  Год назад +2

      I don't just have formula videos. All my classes are full concepts, theories, functions and formulas. My MSPTDA class is here (probably not what you want because it is so comprehensive): ruclips.net/p/PLrRPvpgDmw0ks5W7U5NmDCU2ydSnNZA_1
      Videos #3-12 are all about Power Query. Videos #13 - onward are all about DAX

    • @josh_excel
      @josh_excel Год назад

      I've tried to make a few videos about basic M code formulas, but they won't be as good and polished as what ​@ExcelIsFun does.

  • @ExcelInstructor
    @ExcelInstructor Год назад +1

    Mike, what is the difference between Type number and Type nullable number ?
    I cannot find the information about the difference

    • @excelisfun
      @excelisfun  Год назад +1

      Data Type nullable number just means that a null and number are allowed in the column by Data Type (two data types in one column is not usually allowed - although null is technically "the absence of data"). nullable number literally classify a value null in addition to a number type.
      Data Type number just classifies the one data type number. But you can have a null in a number column because null just means the absence of data.
      But here is the crazy thing, when I build two identical fields, each with name numbers and one null, then add Data Type type number and the other gets Data Type type nullable number:
      1) SUM, COUNTROWS and DISTINCTCOUNT DAX function all get same answer.
      2) SUM, COUNT, COUNT(UNIQUE()) Excel Worksheet functions all get same answer.
      3) A merge between the Data Type type number Field and the Data Type type nullable number Field, the merge/join works.
      4) When you try the M Code function Value.Type on both columns, you get the same result
      I could not find much practical difference.
      5) The only thing I have seen online is from Chris Webb and he shows that if you connect to an SQL Database and query performing is performed, then the SQL code written is slightly different to incorporate the nulls, but the performance difference between the two would always need to be tested...
      I guess there is some non-equivalency issue somewhere, but I could not find it except for the SQL code written during query folding.
      Maybe @Bill Szysz or someone else knows?

    • @ExcelInstructor
      @ExcelInstructor Год назад +2

      @@excelisfun Thank you for researching it Mike.
      Thats why I asked,cos I played around with it and didnt see any differnce between types or values.
      So either I did sth wrong or there was no difference, thats why I asked.
      Thank you so much!!!

    • @excelisfun
      @excelisfun  Год назад +1

      @@ExcelInstructor There is a difference. Internally number is number and nullable number is number OR null. But does the difference do anything - so far it is only in query folding.

  • @jaichander87
    @jaichander87 Год назад

    Hey mike! Is there any video on latitude and longitude calculation?

    • @excelisfun
      @excelisfun  Год назад

      I have a way to do it in Power BI desktop with a map visual in this video: ruclips.net/video/TjSnQ4VDHTE/видео.html

  • @sawaimalhi8439
    @sawaimalhi8439 Год назад

    First lovely comment sir

    • @excelisfun
      @excelisfun  Год назад

      You get the lovely First Place Trophy!!!! : )

  • @zuhebkhan6973
    @zuhebkhan6973 Год назад

    Sir I need one small help from you on power bi side