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 use Flow to Cal...
Power Automate
Answered

How to use Flow to Calculate and Populate a SharePoint Field / Column

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi Power Users, 

 

Hope you can help. I am working on using Power Automate to Update a SharePoint Item with the calculation below

 

CASH FLOW RELEASE = (Approximate Spend x ((Proposed Number of Days Credit-Current Number of Days Credit) / 365))

 

Cash Flow Release is the Column in SharePoint which needs populating and all the fields will be dynamic content from the SharePoint List.

 

Does anyone know how to use Flow Expressions to do this calculation? The syntax is confusing. I would use SharePoint Calculated Columns but they are not visible in New/Edit Modes. I essentially need Flow to do the calculation.

 

Much appreciated,


Arnold

Categories:
I have the same question (0)
  • Verified answer
    Pstork1 Profile Picture
    69,543 Most Valuable Professional on at

    You would build a formula like the one below using the Expressions tab.  Substitute the appropriate dynamic content fields for the things in single quotes. Insert the resulting formula into a compose, a variable or directly into the update sharepoint field.

    mul('Approximate Spend' ,(div(sub('Current Number of Days Credit','Proposed Number of Days Credit'),365))

    Sub() subtracts the first field from the second

    Div() divides the result by 365

    Mul() multiplies that result times Approximate spend. 

  • Verified answer
    v-alzhan-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    Please make sure all the column are Number type and you could refer to screenshot below to create the flow:

    1.png

     

    Expression in the Compose as below:

    mul(outputs('Compose'),div(sub(outputs('Compose_2'),outputs('Compose_3')),365))

     

    Best Regards,

    Alice

     

    Community Support Team _ Alice Zhang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 410

#2
Vish WR Profile Picture

Vish WR 289

#3
David_MA Profile Picture

David_MA 282 Super User 2026 Season 1

Last 30 days Overall leaderboard