How to group and calculate sum of Power Automate array items

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

КОМЕНТАРІ • 39

  • @MohammadAli-ts2ev
    @MohammadAli-ts2ev 2 роки тому +3

    Great explanation. The Compose inside a loop in order to get the current attribute is great

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

    I've got some really *woof* tedious counting to do and your video (by half way through) got me done with a good chunk of it. I really appreciate the tutorial!

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

    I cannot thank you enough. Complicated but very well explained in stages. I liked that you wrote a visual at the start to see all the tables that we will need.

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

    very well explained. Thanks for that crack!

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

    Very helpful video. It solved the problem I was having perfectly!

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

    Thanks for this Alireza - it shows some great concepts and takeaways, even if it's not a 'preferred' method of summing values in arrays. Great job, as always!

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

    Thank you for this great video Alireza!

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

    Great, I was looking for this and it brings almost exactly what I needed, Thank you

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

    Thank You for Your work!

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

    excellent tip. compose will do the trick :)

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

    I like that compose trick! Not sure if you mentioned it but is there a reason you're not using Union to get the unique emails or the Xpath with Sum to calculate your sum? Seems like two ApplyToEachs will slow down performance.

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

    Very very good explanation 👌👌👌👌👌👌

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

    Great content as always

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

    Hi, thanks for the content, I went to your JSON course, Helpful.
    To add a comment, I can tell that if we perform this in a large dataset, it will take more than 40 minutes flow to finish.

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

    Alireza, Thank you!

  • @devray6036
    @devray6036 5 місяців тому

    I enjoyed it

  • @andresnicolasrodriguezsanc4586

    it works, thank you!!

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

    Thank you for this video! I think this solution may become too bulky very quickly for my purposes; what connectors would you recommend for performing this action? I am so frustrated!

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

    Y're the best!!

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

    Thanks very good 👍

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

    Hello Alireza, why you don't use the expression "Union" in the same array, to get the distinct users list?
    I believe this is more efficiently that apply to each :)

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

      You are right. I didn't even think about union when making this video.
      Thank you!

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

      In the sum of numbers u can use xpath to read one xml json with the values in he, it's more efficient too, this method sum 100 m values about in 1 second

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

      Not for that reason, spreading the knowledge that we get along the developments is something always welcome all over the world! :)
      Power Automate is amazing!

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

    Thanks Alireza

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

    Thanks for this, Alireza, but can you create the same procedure like this but compare values from two sources, which are Excel and sharepoint and generate a new Excel report

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

    Great as always, Thanks Alireza! I'm wondering if it's possible to use a similar approach to create an XML file with a defined schema using apply to each based on a CSV file?

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

    Great video Ali. Thinking if this can be used in our transport booking app we are trying to build. BTW, can the powerautomate expressions and checks be used as commands in powerautomate, like use ForAll to loop and if conditions? Just curious if that would speedup the calculation?

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

    I have a large amount data how to intialize

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

      Don't. Look for a third party action who does that.

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

    Great content.
    Tried to register other udemy course with promo code but it is expired

  • @vijayalakshmichitturi-lu4gm
    @vijayalakshmichitturi-lu4gm 2 роки тому

    How to perform sum of colums
    related records of parent record using power automate flow ms crm d365

  • @YangLi-bf3tf
    @YangLi-bf3tf 6 місяців тому

    I have a question regarding the unique user part, why don't we use union expression to get all the unique user list? will that be easier?

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

      Yes it is. I was not thinking about union when I was recording it.

  • @ITHelpdesk-ib9um
    @ITHelpdesk-ib9um 5 місяців тому

    how about i want to group it by "user" and "department" for example,
    {
    "user": "user-A",
    "department": "dept-1",
    "duration": xxx
    }

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

    damn PowerAutomate is definetly not a real ETL, can be done in one step in Talend or Pentaho.....

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

      I agree with you 100 percent. Still I am wondering why aggregate functions are not available in power automate