Skip to main content

Notifications

Power Automate - Using Flows
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

  • yashag2255 Profile Picture
    yashag2255 24,442 on at
    Re: My flow

    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!

  • keedman4 Profile Picture
    keedman4 7 on at
    My flow

    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
    yashag2255 24,442 on at
    Re: undefined

    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!

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,636

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,942

Leaderboard

Featured topics

Restore a deleted flow