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 / Calculate Sum in Child...
Power Automate
Unanswered

Calculate Sum in Child Table Based on Two Conditions in Parent Table

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

 

I'm new to Power Automate and know little to nothing about JSON. Basically what I want to do is a SUMIFS fxn from Excel. I have a Transaction Table and a Totals Table. I want to aggregate all of the transactions that occur in the Transaction Table to the Totals Table, based two criteria: Category and Location. 

 

There are 3 fields I want to take into consideration from the transaction table Category, Location and Qty. I want the logic to be: If Category and Location Match then sum the Qty for all of the locations that meet that criteria. For example, if I were to make 3 transactions (or 5 orders which is how I am thinking of it) as follows:

Transaction 1

  • Category: Hammers
  • Location: Kentucky
  • Qty: 3

Transaction 2

  • Category: Hammers
  • Location: Kentucky
  • Qty: 5

Transaction 3

  • Category: Hammers
  • Location: Kentucky
  • Qty: 1

I would want the Transaction Table to be summarized in the Totals Table as follows:

  • Category: Hammers
  • Location: Kentucky
  • Total Qty: 9

There will be many categories and locations.

 

Is this possible to do with Power Automate?

 

 

 

Categories:

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
Mohsin Ali Profile Picture

Mohsin Ali 289

#2
11manish Profile Picture

11manish 288 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 125

Last 30 days Overall leaderboard