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 / Add two values and upd...
Power Automate
Answered

Add two values and update item

(0) ShareShare
ReportReport
Posted on by 442

Hi Community,
I need Flow to read the Total points from an Excel document that is generated from Forms quiz responses and then add this value to the current score for a user on a SharePoint list.
I'm able to list the items and also get the items from the SharePoint list but I'm not sure how to do the math within Flow to then update the SharePoint item.
Any ideas please?
Thanks,
CT

Categories:
I have the same question (0)
  • Verified answer
    RobElliott Profile Picture
    10,426 Super User 2026 Season 1 on at

    Hi @CollabTechie, one way to do this - there might be more elegant ways - is shown below.

    The overall flow looks like this and we'll then look act each component:

    4-OverallFlow.png

    I've manually triggered the flow then the first action is the Excel List rows present in a table.

    Next add an Apply to each control, and for each value returned we add a SharePoint Get items action. But we only want to bring back the 1 item in our SharePoint list where the email address (in my Title column) is equal to the Email recorded on the form response. So add a filter query of Title eq '{Email}' where email is selected from the dynamic content. Making sure you put it inside single quotes.

    0-trigger-listExcelRows-Apply.png

    Next add another Apply to each control and select value from the Get items section of the dynamic content.

    1-GetItems.png

    Inside that apply to each add:

    1) a Compose control to get the current total in the SharePoint column;

    2) a Compose control to get the Total Points for the user from the form. You need to note that this is brought into the flow as text, not a number. So then;

    3) add a Compose to turn it into an integer using the expression int(outputs('Compose_txtPointsToAdd'))

     2-ComposeCurrent-PointsToAdd.png

    Next add another Compose control to do the addition. The expression is add(outputs('Compose_CurrentScore'),outputs('Compose_intPointsToAdd'))

    Finally, add a SharePoint Update item action and in the Total column select the output from the Compose Addition.

    3-Addition-UpdateItem.pngRob

    Los Gallardos
    If I've answered your question or solved your problem, please mark this question as answered. This helps others who have the same question find a solution quickly via the forum search. If you liked my response, please consider giving it a thumbs up. Thanks.

     

     

  • CollabTechie Profile Picture
    442 on at

    Wow, thanks for the detailed response! I'm going to try this out right now and I will come back to you 🙂

  • CollabTechie Profile Picture
    442 on at
    That worked perfectly, Rob. Ideally I would like to skip Excel but no dynamic content exists for score directly from Forms!
  • rbartles1029 Profile Picture
    6 on at

    This is exactly what I was looking for!!!  I was trying to solve adding a number from my list where I show a "receipt" of a qty for an item into inventory and add it to an inventory "master sku list" of on hand inventory. I am doing the shipping as it's own and then I will do a column that calculates the difference between received and shipped to show the on hand. 

     

    You saved me tons of time and I appreciate it!   Only difference was my vales were both set to numbers so no extra steps needed and of course not from excel it was from SP to SP.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard