web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to create a simple...
Power Automate
Unanswered

How to create a simple flow to count total amount

(0) ShareShare
ReportReport
Posted on by

Hi all,

 

I have a SharePoint List as similar as below, for same invoice, it is using same currency

 

Invoice:

CompanyInvoice NoInvoice DateCurrency
AIN0000011/1/2021USD
AIN0000021/1/2021USD
AIN0000031/2/2021EUR

 

Invoice Item:

Invoice NoItem TypeAmount
IN000001CPU2020
IN000001Ram101
IN000001Hard disk1010
IN000001CPU2030
IN000002Ram203
IN000003Windows License1234
IN000003CPU1234

 

When I trigger the flow for company A, it should sum all Invoice item with same invoice no and item type into single cell and sum the column with same currency into total. The column items is fixed and total rows is dynamic base on how many currency involved as below:

Invoice NoCurrencyCPURamHard diskWindows LicenseOthers
IN000001USD4050101101000
IN000002USD0203012340
IN000003EUR12340000
TotalUSD4050304101012340
 EUR1234000

0

 

I can do it with filter query to get which SharePoint item need to be sum and couple of loops to calculate the value for each cells in the table (including each invoice item, total currency and total amount). However, it is a huge performance issue.

 

Any better idea to save the data in single/few loop and output into html table?

Categories:
I have the same question (0)
  • jinivthakkar Profile Picture
    4,187 on at

    @Anonymous when you flow for Company A, you want all entries with the total in an email ? Is this what you are trying to do?

  • Community Power Platform Member Profile Picture
    on at

    yes, that's what I am trying to do

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard