GROUPBY & PIVOTBY Functions to Create a 1/2 Year Summary Report! Excel Magic Trick 1863

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ต.ค. 2024

ความคิดเห็น • 59

  • @Excelambda
    @Excelambda 2 หลายเดือนก่อน +6

    Great CF tricks✌🏼
    There are other million ways formulas and formats possible for 1/2 years. The idea is that whatever formula delivers a convenient helper column can be used as field arguments with GROUPBY/PIVOTBY. 😉

    • @excelisfun
      @excelisfun  2 หลายเดือนก่อน +1

      You are soooooooooooooooooooo right: just make a helper column and then use it in GROUPBY or PIVOTBY. Thanks, Wingman Teammate : ) : ) : )

    • @Excelambda
      @Excelambda 2 หลายเดือนก่อน +1

      @@excelisfun For the ones that still do not have groupby/pivotby this is my take: (again YT does not post stuff, only if we hit next to " n Comments" header Sort by -> Newest first
      =LET(
      d, InvoiceSales35[Date],
      a, InvoiceSales35[InvoiceAmount],
      t, YEAR(d) & ", " & IF(MONTH(d) > 6, "Jul 01 - Dec 31", "Jan 01 - Jun 30"),
      u, UNIQUE(SORT(t)),
      m, MAP(u, LAMBDA(x, SUM((x = t) * a))),
      VSTACK({"1/2 Year", "Sum of InvoiceAmount"}, HSTACK(u, m), HSTACK("Total", SUM(m)))
      )
      =LET(
      h, "Total",
      d, InvoiceSales35[Date],
      a, InvoiceSales35[InvoiceAmount],
      y, YEAR(d),
      t, IF(MONTH(d) > 6, "Jul 01 - Dec 31", "Jan 01 - Jun 30"),
      u, UNIQUE(SORT(y)),
      v, TOROW(UNIQUE(SORT(t))),
      m, MAP(IFNA(u, v), IFNA(v, u), LAMBDA(i, j, SUM((i = y) * (j = t) * a))),
      VSTACK(HSTACK("", v, h), HSTACK(u, m, BYROW(m, SUM)), HSTACK(h, BYCOL(m, SUM), SUM(m)))
      )
      apart of cosmetics main values results are 2 simple MAP constructions
      MAP(u, LAMBDA(x, SUM((x = t) * a)))
      and,
      MAP(IFNA(u, v), IFNA(v, u), LAMBDA(i, j, SUM((i = y) * (j = t) * a))),

  • @IvanCortinas_ES
    @IvanCortinas_ES 2 หลายเดือนก่อน +1

    Excellent solution Mike, as always. Thank you!!!

    • @excelisfun
      @excelisfun  2 หลายเดือนก่อน

      You are welcome!!!

  • @SyedMuzammilMahasanShahi
    @SyedMuzammilMahasanShahi 2 หลายเดือนก่อน +1

    Thank you Mike for this EXCELlent video.

    • @excelisfun
      @excelisfun  2 หลายเดือนก่อน

      You are welcome, Fellow Teacher!!!!

  • @kiwikiow
    @kiwikiow 2 หลายเดือนก่อน

    Nice formula tricks. Thank you Mike :)

  • @gvitullib
    @gvitullib 2 หลายเดือนก่อน +1

    Nice useful trick! I just added it to my Excel toolbox.

    • @excelisfun
      @excelisfun  2 หลายเดือนก่อน

      Yes!!!! The more tools in that toolbox, the more fun : ) : )

  • @excel_along_the_way
    @excel_along_the_way 2 หลายเดือนก่อน +1

    Thank you Mike, appreciate tip to find your conditional format range.
    I really must explore the "go to" functionality.

    • @excelisfun
      @excelisfun  2 หลายเดือนก่อน

      Go To is one of those old school features that is so very useful!!!

  • @richardhay645
    @richardhay645 2 หลายเดือนก่อน +1

    Good. Several ways to get the helper column. Several ways to summarize the data. In this situarion I prefer ROUNDUP to fill the helper and GROUPBY/PIVOTBY for the summarization. My general Excel "rule": formulas over features; Tables over ranges; simplicity over complexity; keyboards over mice.

    • @excelisfun
      @excelisfun  2 หลายเดือนก่อน

      Thanks for the simplicity, Word Poet Richard Hay : ) : ) : ) : ) : )

  • @sujeetsamal
    @sujeetsamal 2 หลายเดือนก่อน +1

    Always exploring your mind is ...sir...🙏

    • @excelisfun
      @excelisfun  2 หลายเดือนก่อน

      Glad to explore with you!!!!!

  • @nadermounir8228
    @nadermounir8228 2 หลายเดือนก่อน

    Amazing video as always Mike. My favorite channel on youtube :)

    • @excelisfun
      @excelisfun  2 หลายเดือนก่อน +1

      Thank you!!! It is great to hang out with you, Nader : ) : )

    • @nadermounir8228
      @nadermounir8228 2 หลายเดือนก่อน

      @@excelisfun likewise Mike :) :) :) i learn a lot from u

  • @workstuff5253
    @workstuff5253 2 หลายเดือนก่อน +1

    I'm sure you already know this, but watching your video inspired me to try using the spill operator in the conditional formatting "Applies to" and it "worked". But sadly when going back into edit the rule, Excel has replaced the dynamic spill with the hardcoded address :(
    Perhaps MS could fix this in the future to help us having to stop guessing when cells to apply the CF to.

    • @excelisfun
      @excelisfun  2 หลายเดือนก่อน

      It would be good if MS did that...

  • @chrism9037
    @chrism9037 2 หลายเดือนก่อน +1

    Love it Mike! Great video thanks!

    • @excelisfun
      @excelisfun  2 หลายเดือนก่อน +1

      You are welcome, Teammate Chris M!!!

  • @simsong1911
    @simsong1911 2 หลายเดือนก่อน +1

    Thanks for the excellent videos. Has anyone told you that you are a voice talent too? You have the exact same voice as Ross Geller from friends. I can imagine having my answering machine with a personalized message in your voice! $$$$ 😀

    • @excelisfun
      @excelisfun  2 หลายเดือนก่อน

      To funny... lol

  • @sscire
    @sscire 2 หลายเดือนก่อน +1

    Great video MIKE thanks! ... ...I am still waiting for MS .... to release these features in the stable version ...
    I have a question .... recently a parameter was added that I don't understand to both functions .... do you know anything about its use?

    • @excelisfun
      @excelisfun  2 หลายเดือนก่อน +1

      Yes, the new feature allows you to have report as it is now, or in table format. You can try it: put two conditions in rows and try both parameters : )

    • @excelisfun
      @excelisfun  2 หลายเดือนก่อน +1

      Yes, MS is taking longer to release these out of Beta than any other feature ever.

  • @shafiullahharifal9527
    @shafiullahharifal9527 2 หลายเดือนก่อน +1

    Very very useful video thanks

    • @excelisfun
      @excelisfun  2 หลายเดือนก่อน

      You are welcome!!!

  • @IssueBoyStefan
    @IssueBoyStefan 2 หลายเดือนก่อน +2

    Great video! When those two will be available outside of the business insider beta channel?

    • @excelisfun
      @excelisfun  2 หลายเดือนก่อน

      Well... We have no idea. Why? Because usually the beta appears in M 365 in a few months. BUT: these two functions have already been over a year!!!! I think that there were some programming issues and so it is the new world record for longest beta period ever. But, when then get it right: WOW!!! It will be a game changer : )

  • @Tuhin380
    @Tuhin380 2 หลายเดือนก่อน +1

    Just awesome ❤❤❤❤

    • @excelisfun
      @excelisfun  2 หลายเดือนก่อน

      Cool: Just fun!!!!

  • @johnborg5419
    @johnborg5419 2 หลายเดือนก่อน +1

    Thanks Mike!!! :) :)

    • @excelisfun
      @excelisfun  2 หลายเดือนก่อน

      You are welcome, Formula Guy John!!!!

  • @DIGITAL_COOKING
    @DIGITAL_COOKING 2 หลายเดือนก่อน +1

    Nice trick, but i wonder what is going on because I know GROUPBY and PIVOTBY even lambda are python function(pandas) and they also add python in excel, is it start of excel to derive to python language? 🤔🤔

    • @excelisfun
      @excelisfun  2 หลายเดือนก่อน

      I do not know... : (

  • @adebolatolu9595
    @adebolatolu9595 2 หลายเดือนก่อน +1

    How can we perform wraprows and wrapcolumns in power query or power bi?

    • @excelisfun
      @excelisfun  2 หลายเดือนก่อน

      As far as I know, there is not an easy way like in the worksheet. Maybe someone else knows? Otherwise, I will try a few things and see if I can figure it out : )

  • @FutureCommentary1
    @FutureCommentary1 2 หลายเดือนก่อน +1

    When is it going to be available for the general public though?
    Sigh.

    • @excelisfun
      @excelisfun  2 หลายเดือนก่อน +1

      Well... We have no idea. Why? Because usually the beta appears in M 365 in a few months. BUT: these two functions have already been over a year!!!! I think that there were some programming issues and so it is the new world record for longest beta period ever. But, when then get it right: WOW!!! It will be a game changer : )

  • @amankumarsingh4760
    @amankumarsingh4760 2 หลายเดือนก่อน

    How can we make a progress bar in a cell without disturbing the actual data present in it ?

    • @excelisfun
      @excelisfun  2 หลายเดือนก่อน

      I am sorry, I do not know. : (

  • @MerkDolf
    @MerkDolf 2 หลายเดือนก่อน +1

    👁 👍 😅 👌

    • @excelisfun
      @excelisfun  2 หลายเดือนก่อน +1

      Thanks, Teammate!!!!

    • @MerkDolf
      @MerkDolf 2 หลายเดือนก่อน +1

      @@excelisfun thank you!

  • @MrFredy65
    @MrFredy65 2 หลายเดือนก่อน +1

    Excellent....thanks...

    • @excelisfun
      @excelisfun  2 หลายเดือนก่อน

      You are welcome for the EXCELlence!!!

  • @BillSzysz1
    @BillSzysz1 2 หลายเดือนก่อน +1

    Thanks Mike for a great video.👍
    While waiting for the GROUPBY and PIVOTBY functions, we can do this task using functions available to everyone (Excel 365).
    For GROUPBY it would be something like this
    =LET(
    dates, InvoiceSales35[Date],
    values, InvoiceSales35[InvoiceAmount],
    year_half, YEAR(dates) &", " & IF(MONTH(dates)

    • @excelisfun
      @excelisfun  2 หลายเดือนก่อน

      Beautiful, PQ Poet and Array Formula Master Bill Szysz!!!! : ) : )

    • @Excelambda
      @Excelambda 2 หลายเดือนก่อน +4

      Super cool , or these:
      =LET(
      d, InvoiceSales35[Date],
      a, InvoiceSales35[InvoiceAmount],
      t, YEAR(d) & ", " & IF(MONTH(d) > 6, "Jul 01 - Dec 31", "Jan 01 - Jun 30"),
      u, UNIQUE(SORT(t)),
      m, MAP(u, LAMBDA(x, SUM((x = t) * a))),
      VSTACK({"1/2 Year", "Sum of InvoiceAmount"}, HSTACK(u, m), HSTACK("Total", SUM(m)))
      )
      =LET(
      h, "Total",
      d, InvoiceSales35[Date],
      a, InvoiceSales35[InvoiceAmount],
      y, YEAR(d),
      t, IF(MONTH(d) > 6, "Jul 01 - Dec 31", "Jan 01 - Jun 30"),
      u, UNIQUE(SORT(y)),
      v, TOROW(UNIQUE(SORT(t))),
      m, MAP(IFNA(u, v), IFNA(v, u), LAMBDA(i, j, SUM((i = y) * (j = t) * a))),
      VSTACK(HSTACK("", v, h), HSTACK(u, m, BYROW(m, SUM)), HSTACK(h, BYCOL(m, SUM), SUM(m)))
      )
      apart of cosmetics main values results are 2 simple MAP constructions
      MAP(u, LAMBDA(x, SUM((x = t) * a)))
      and,
      MAP(IFNA(u, v), IFNA(v, u), LAMBDA(i, j, SUM((i = y) * (j = t) * a))),

    • @excelisfun
      @excelisfun  2 หลายเดือนก่อน +1

      @@Excelambda , Thanks for the old school magic, Excel Lambda!!!!!