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 Apps / Need help with Sum of ...
Power Apps
Unanswered

Need help with Sum of 2 SharePoint columns from different list in Power Automate

(0) ShareShare
ReportReport
Posted on by 37

I got 2 columns _TodalDays and _DeductibleAnnualB.  Both Columns are Number format in SharePoint. I would like to sum both columns and update item in SharePoint ( _DeductibleAnnualB) via Power Automate. 

 

_TotalDays value is coming from ( when an item is modified) . 

_DeductibleAnnualB existing value coming from get items based on condition.

 

But i cannot perform Sum and update _DeductibleAnnualB column. Tried below formula in Update item ( SharePoint) but giving error. 

 

add(int(triggerBody()?['_TotalDays']), int(body('Get_items')?['_DeductibleAnnualB']))

 

Categories:
I have the same question (0)
  • royg Profile Picture
    on at

    @FahadJaved212,

    Looks like you're trying to add the value to an array. That won't work. Add expects 2 numbers.

    if you have a specific item in that array, you could try something like: 

    add(int(triggerBody()?['_TotalDays']), int(body('Get_items')?[0]?['_DeductibleAnnualB']))

     If you want to summarize all the items in your array, there are some complex ways to achieve that (xml/xpath is one of them) or iterate the items in a loop and summarize the values.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard