Grouping in GROUPBY & PIVOTBY Functions!?!? Yes!!!! Frequency Distribution with GROUPBY EMT 1858

Поделиться
HTML-код
  • Опубликовано: 15 июл 2024
  • Download Excel File: excelisfun.net/files/EMT1857-...
    Learn how to group in the GROUPBY and PIVOTBY functions to create Frequency Distributions.
    Topics:
    1. (00:00) Introduction to Frequency Distribution
    2. (00:38) Start, Increment and Last Value for frequency distribution using MAX and CEILING.MATH functions
    3. (01:12) Build Bins using SEQUENCE function
    4. (01:42) Build GROUPBY Formula using LET and GROUPBY
    5. (02:37) Look at PIVOTBY Formula
    6. (02:43) Understanding Categories
    7. (03:00) Closing, Video Links
    #excel #excelisfun #analytics #analysis #dataanalysis #dataanalytics #excelmvp #freeclass #freecourse #freeclasses #excelclasses #microsoftexcel #microsoftmvp #groupby #pivotby

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

  • @chrism9037
    @chrism9037 3 месяца назад +2

    This was great Mike, thanks. Hoping to get GROUPBY and PIVOTBY soon!

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

      I hope very soon!!!!

  • @SyedMuzammilMahasanShahi
    @SyedMuzammilMahasanShahi 3 месяца назад +1

    Thank you amazing Mike for this EXCELlent video.

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

      You are welcome Syed Muzammil Mahasan Shahi!!!!!!!

  • @johnborg5419
    @johnborg5419 3 месяца назад +2

    Thanks Mike!! That was Great. :) :)

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

      You are welcome, Formula Guy John!!!

  • @lesterpotts6142
    @lesterpotts6142 3 месяца назад +2

    Thanks Mike, I see you having fun there.🎉
    Keep playing soon we will play along.😂

  • @Excelambda
    @Excelambda 3 месяца назад +6

    Great video!! Brilliant trick !!✌
    Out of everything that GROUPBY and FREQUENCY can do separately, there is only one functionality "intersection": count unique numeric values of a vertical vector.
    TAKE(GROUPBY(x,x,COUNT,,0),,-1) DROP(FREQUENCY(x,SORT(UNIQUE(x))),-1)
    - groupby can deal with any values, not only numeric (function COUNTA)
    - groupby does not create any bins, by default lists the unq values
    - frq filters only numeric values
    - frq can deal with any shape data_array, not only vectors
    - bins_array can be set independent of data_array
    - frq count unique always has last value 0 that is irrelevant
    - frq does not list its bins
    - side note: since introduction of UNIQUE, FREQUENCY(x,x) became obsolete, more useful FREQUENCY(x,sort(unq(x)))
    Conclusion:
    When we need count unique of a clm vector GROUPBY should be considered: works with other data types, we can visualize the "bins" and it is as fast as FREQUENCY is. No performance issues.
    For other scenarios FREQUENCY can be used (upper limit included ) or the custom designed one that does everything including upper limit not included, all data types, bins..etc. Will be published soon.
    Now, the trick with CEILING to "simulate" "bins" frq behavior is super cool. The fact that unq ceiling values are the same with sequence bins ones is because of how the sales values are distributed. If we change the first sales value to 600, will lose the 500 bins. Also, to get uneven bins intervals distrib like 500, 1300,1700,2000....we cannot use ceiling trick.
    My 2 cents on the matter. ✌😉

    • @GeertDelmulle
      @GeertDelmulle 3 месяца назад +3

      Nice set of thoughts, more like $12.50 worth, IMO. ;-)
      I think FREQUENCY is more efficient because the bins range can be calculated efficiently, whereas GroupBy needs to transform the entire data vector -which can be big (data)- before the grouping (FREQ does not need that intermediate calculation).
      Histograms like these can be most effective to reduce big datasets to the granularity of a required report without loss of information.
      So calculations like these can be super useful.

    • @Excelambda
      @Excelambda 3 месяца назад +6

      @@GeertDelmulle Of course that freq is "lighter", numeric only. Groupby lot "havier" cannot work with few bins or choose the bins , its "bins" are predetermined by the data structure as its unique values . This makes the difference. For decent data tests was quite fast.

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

      Wow!!!! The dissertation is in on the difference between GROUPBY and FREQUENCY : ) BAM!!!! You are right about ceiling only doing equal bins. I have a few DAX approximate match lookup videos that show both the ceiling lookup and the FILTER/CALCULATE/MAX method that deals with uneven categories. Thank you, Excel Lambda for the clear dissertation for the Team!!!!

  • @barttitulaerexcelbart9400
    @barttitulaerexcelbart9400 3 месяца назад +1

    I don't have it yet, but everything is getting more dynamic in Excel. Thanks Mike!

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

      You are welcome, Teammate!!!!

  • @lucaviglio1206
    @lucaviglio1206 3 месяца назад +1

    Amazing video, as usual

    • @excelisfun
      @excelisfun  3 месяца назад +1

      Glad you like it : )

  • @spilledgraphics
    @spilledgraphics 3 месяца назад +1

    short comment: loving the 💥BAMs💥!! - Back to the channel RAD Mike!

    • @excelisfun
      @excelisfun  3 месяца назад +1

      Bam!!!!@!! You are RAD too : ) : ) : ) : )

  • @richardhay645
    @richardhay645 3 месяца назад +1

    GROUPBY good!!

  • @viktorasgolubevas2386
    @viktorasgolubevas2386 3 месяца назад +1

    Perfectly!
    in recent EMT1849 I proposed to group by "calculated column" instantly:
    =GROUPBY(CEILING.MATH(S[Sales], G2), S[Sales], COUNT)
    we can even try grouping "formatted" values, e.g.
    =GROUPBY("

    • @excelisfun
      @excelisfun  3 месяца назад +1

      LOVE the FLOOR.MATH : ) Such a great idea, Victor!!!

  • @nourreldeenmohamed367
    @nourreldeenmohamed367 3 месяца назад +4

    Thank you Mr girvin but we are waiting group by function and pivot by function to be released in Excel 365 that all people have because until now it has not been released 🙁🙁

    • @sscire
      @sscire 3 месяца назад

      .... not even in preview channel 😄

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

      Yes, MS is not being very nice.

  • @IvanCortinas_ES
    @IvanCortinas_ES 3 месяца назад +1

    Awesome, Mike!!! Are GROUPBY/PIVOTBY one of the 10 most important functions in Excel?

    • @excelisfun
      @excelisfun  3 месяца назад +1

      They are right up there, that is for sure!!!

  • @MrUPS1973
    @MrUPS1973 3 месяца назад

    Hello! Not sure where to go for advice. I wanted to know if it is possible to create a file in Excel from which changes can be made centrally in other files. For instance. I have a list of customers and a price page created for each one, and I need to change the price of some of the products. If there are many customers, then it is tedious to go through the list to replace e.g. one price.

  • @ExcelStrategy
    @ExcelStrategy 3 месяца назад +1

    On the current channel those are still not available like the Python features. Don't know why it is taking so long they have been presented in November 2023 it is over 5 months I wonder when the semiannual channel will get them...

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

      Yes, MS is being bad... : (

  • @GeertDelmulle
    @GeertDelmulle 3 месяца назад +1

    And still I think that the FREQUENCY function will be more efficient...
    Thoughts?

    • @nourreldeenmohamed367
      @nourreldeenmohamed367 3 месяца назад +1

      And more easier 👌👌

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

      True for sure. But I guess having the word total. having a single cell formula, or perhaps add other criteria in row area are advantages that GROUPBY has over FREQUENCY.

    • @GeertDelmulle
      @GeertDelmulle 3 месяца назад

      @@excelisfun True, too.
      And furthermore, GroupBy is how we do in in PQ. And “Excel Classic” (as I like to call it) has the added benefit of PivotBy where you can diversify the frequency calculation in another dimension, where in PQ that would be multiple steps (double GroupBy and then pivot).

    • @excelisfun
      @excelisfun  3 месяца назад +1

      @@GeertDelmulle True too too ; )

    • @excelisfun
      @excelisfun  3 месяца назад +1

      The real problem was the way I made the video. I did not show examples where GROUPBY could shine lol