There is no easy way to calculate aggregates in Power Automate, but there are a few options available. One option is to loop over the array and apply formulas, another is to use the Graph API and Excel formulas, and a third option is to use third-party connectors. However, if your data is coming from Dataverse or SharePoint, you can use FetchXml or CAML aggregations, respectively. Another option is to use Code-Only Connectors (CoC), which allow you to perform calculations using code. The CoC connector can aggregate arrays of numbers or objects and provide Excel-like aggregate functions such as Sum, Avg, StDev, Median, Min, Max, Product, and ModeSngl. There are plans to add more Code-Only Connectors in the future.
Login now to access my digest by 365.Training