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

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Calculating a Total Within a Column

(0) ShareShare
ReportReport
Posted on by 5

Hi, I've set up a successful process where I can transfer values from a SharePoint list to a distinct Excel sheet. I need some guidance to finalise this process. In a Microsoft Teams channel, I have a SharePoint list with a "points used" column. Whenever this column is updated with a new value, a corresponding row is added to an Excel sheet in a different team's channel. My goal is to deduct the newly added "points used" value in the Excel sheet from the existing "points remaining" column to maintain a continuous total. Here's an example for clarity:

RSCYK_0-1697350648160.png

My flow consists of the following at the moment, but I am receiving errors at the list rows present in a table to stop the flow:

RSCYK_1-1697350770500.png

I am new to power automate, so any help and advice would be gratefully appreciated.

 

Thanks,

I have the same question (0)
  • ManishSolanki Profile Picture
    15,089 Super User 2025 Season 2 on at
    Re: Calculating a Total Within a Column

    Hi @RSCYK 

     

    Could you pls share the screenshot of the error? Also, share the details of actions in "Yes" block, if you share the screenshot(s) in edit mode.

     

    Thanks

  • RSCYK Profile Picture
    5 on at
    Re: Calculating a Total Within a Column

    RSCYK_0-1697356086638.png

    Syntax error at position 16 in 'Points Remaining'.
    inner exception: Syntax error at position 16 in 'Points Remaining'.
    clientRequestId: 2e74ca49-91b2-475b-985d-57da8ff9deef

     

    RSCYK_1-1697356232685.png

     

     

  • Verified answer
    ManishSolanki Profile Picture
    15,089 Super User 2025 Season 2 on at
    Re: Calculating a Total Within a Column

    Hi @RSCYK 

     

    If the first row always holds the "Point Remaining" value, then you don't need to set the order by parameter in "List rows present in a table". The top 1 will fetch the first row which you have already set.

     

    In compose, you need to write an expression to calculate the difference. It wouldn't evaluate the formula when enter directly in textbox. 

    ManishSolanki_0-1697357964143.png

    I have also converted the values into integers to perform subtraction operation in the expression, pls try using the below expression:

    sub(int(first(outputs('List_rows_present_in_a_table')?['body/value'])?['Points Remaining']),int(outputs('Add_a_row_into_a_table')?['body/Points Used']))

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 655 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 371 Moderator

#3
chiaraalina Profile Picture

chiaraalina 276

Last 30 days Overall leaderboard