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 Automate
Unanswered

undefined

(0) ShareShare
ReportReport
Posted on by 7

Hi guys, i am quite new to flow but i have a task im trying to do....i am trying to use expression to carryout a calculation on flow....

I have a table on my list below... i want to write an expression that can calculate the closing account at the end of the day by deducting credit and adding debit from the total budget.....Also opening account should be equals to the closing account of the previous day. Any help??.....Here is the expression i could come up with

sub(triggerBody()?['Budget'],triggerBody()?['Credit'])

List.PNG

Categories:
I have the same question (0)
  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hey @keedman4 

     

    The expression looks correct to me. Can you share a screenshot of the flow where you are applying this expression? Also, what is the datatype of these columns? you might want to use the int function to first convert the data to integer and then use the subtract function. 

     

    Hope this Helps!

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • keedman4 Profile Picture
    7 on at

    its quite basic but not complete... I want to be able to add and subtract on the same flow as well as multiply and divide in subsequent onesCapture.PNG

  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hey @keedman4 

     

    So the when an item is created trigger sets off the flow as soon as the item is created and I guess it just returns the basic information like ID, creator, created time etc (it is like that for the CDS connector so I assume it is the same with this one). Can you try adding a get item action after the trigger and in the ID of that, select the id from the dynamic content. In the expression you will now have to update the triggerbody? with Get_Item and reference to the column value that way. Can you try this and check if you face any issues/ errors?

     

    Hope this Helps!

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. 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

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!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 308

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 226 Most Valuable Professional

Last 30 days Overall leaderboard