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

Announcements

News and Announcements icon
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 Microsoft Employee

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:
  • 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
    Microsoft Employee 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 237 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 227 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 194

Last 30 days Overall leaderboard