Hi All - I have a currency column in SharePoint List called Total Cost. In Power Apps i want to Calculate Sum of Total Cost based on ID Filter. The ID's could be dynamic array like at times it could be [1,3,4,5] and sometimes the ID array could be different. Sum in PowerApps is non delegable. So we would need to rely on powerautomate.
The power automate is looping through each of the ID's and calculating the sum in the variable within the apply to each action. If there are 20 ID's each iteration is taking around 1s increasing the time taken to 20s for the flow to complete., which is not ideal from performance stand point.
If we include Concurrency the variable to calculate sum cannot be inside the apply to each action.
The other alternate we can think of is using CAML Query. Are there any other better ways to this.
Thanks!